rogerxavier commited on
Commit
e1d783a
1 Parent(s): aee382f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -2,8 +2,12 @@ import gradio as gr
2
  from api import app
3
  import os
4
  import uvicorn
 
 
5
 
6
 
7
  if __name__ == "__main__":
 
 
8
 
9
  uvicorn.run("app:app", host="0.0.0.0", port=int(os.environ.get('PORT', 7860)), reload=True)
 
2
  from api import app
3
  import os
4
  import uvicorn
5
+ import subprocess
6
+
7
 
8
 
9
  if __name__ == "__main__":
10
+ # 执行命令
11
+ subprocess.run(["apt", "install", "imagemagick"])
12
 
13
  uvicorn.run("app:app", host="0.0.0.0", port=int(os.environ.get('PORT', 7860)), reload=True)