sca255 commited on
Commit
84e7ada
·
verified ·
1 Parent(s): 69f320a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -81,5 +81,7 @@ if True:
81
  #process2 = subprocess.Popen(command2, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
82
  #output, error = process2.communicate()
83
  #print("Output:", output.decode())
84
- os.system(f"python launch.py --ui-config-file /home/user/app/ui-config.json --ui-settings-file /home/user/app/config.json --disable-console-progressbars --enable-console-prompts --cors-allow-origins huggingface.co,hf.space --no-progressbar-hiding --api --skip-torch-cuda-test")
 
 
85
 
 
81
  #process2 = subprocess.Popen(command2, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
82
  #output, error = process2.communicate()
83
  #print("Output:", output.decode())
84
+ os.system("""export PYTORCH_TRACING_MODE=TORCHFX
85
+ export COMMANDLINE_ARGS="--skip-torch-cuda-test --precision full --no-half" """)
86
+ os.system(f"./webui.sh")
87