ACCA225 commited on
Commit
8df1870
1 Parent(s): 4bb9562

Update app3.py

Browse files
Files changed (1) hide show
  1. app3.py +4 -1
app3.py CHANGED
@@ -185,7 +185,7 @@ def start():
185
  print(f"proxy 启动时发生重大错误: {e}")
186
  try:
187
  #安装环境
188
- os.system(f"python launch.py --skip-torch-cuda-test --use-cpu=True --no-half --api --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
189
  #time.sleep(5)
190
 
191
  command = "python launch.py --api --skip-torch-cuda-test --use-cpu=True --no-half --ui-settings-file /home/xlab-app-center/config.json --ui-config-file /home/xlab-app-center/ui-config.json --gradio-queue --disable-safe-unpickle"
@@ -204,3 +204,6 @@ start_thread = threading.Thread(target=start)
204
  start_thread.start()
205
 
206
  start_thread.join()
 
 
 
 
185
  print(f"proxy 启动时发生重大错误: {e}")
186
  try:
187
  #安装环境
188
+ #os.system(f"python launch.py --skip-torch-cuda-test --use-cpu=True --no-half --api --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
189
  #time.sleep(5)
190
 
191
  command = "python launch.py --api --skip-torch-cuda-test --use-cpu=True --no-half --ui-settings-file /home/xlab-app-center/config.json --ui-config-file /home/xlab-app-center/ui-config.json --gradio-queue --disable-safe-unpickle"
 
204
  start_thread.start()
205
 
206
  start_thread.join()
207
+
208
+ while True:
209
+ time.sleep(90000)