File size: 284 Bytes
27d3236
 
 
 
e1d783a
 
27d3236
 
 
e1d783a
 
27d3236
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
from api import app
import os
import uvicorn
import subprocess
  


if __name__ == "__main__":
    # 执行命令
    subprocess.run(["apt", "install", "imagemagick"])

    uvicorn.run("app:app", host="0.0.0.0", port=int(os.environ.get('PORT', 7860)), reload=True)