ACCA225 commited on
Commit
7b63227
1 Parent(s): 8c6dbf6

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +7 -7
app2.py CHANGED
@@ -203,18 +203,18 @@ def zrok():
203
  os.system(f'./zrok share public localhost:7861')
204
  os.system(f'./zrok share public localhost:7862')
205
  def start():
206
- try:
207
- print('启动proxy')
208
- threading.Thread(target = localProxy,daemon=True).start()
209
- except Exception as e:
210
- # 在这里处理异常的代码
211
- print(f"proxy An error occurred: {e}")
212
  try:
213
  #安装环境
214
  os.system(f"python launch.py --api --xformers --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
215
  #time.sleep(5)
216
 
217
- command = "python launch.py --api --xformers --enable-insecure-extension-access --no-gradio-queue --disable-safe-unpickle"
218
 
219
 
220
  process = subprocess.Popen(command, shell=True)
 
203
  os.system(f'./zrok share public localhost:7861')
204
  os.system(f'./zrok share public localhost:7862')
205
  def start():
206
+ #try:
207
+ # print('启动proxy')
208
+ # threading.Thread(target = localProxy,daemon=True).start()
209
+ #except Exception as e:
210
+ # # 在这里处理异常的代码
211
+ # print(f"proxy An error occurred: {e}")
212
  try:
213
  #安装环境
214
  os.system(f"python launch.py --api --xformers --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
215
  #time.sleep(5)
216
 
217
+ command = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle"
218
 
219
 
220
  process = subprocess.Popen(command, shell=True)