rogerxavier
commited on
Commit
•
cde2df6
1
Parent(s):
510f2a6
Delete app.py
Browse files
app.py
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
import gradio as gr
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|