Spaces:
Running on Zero
Running on Zero
File size: 321 Bytes
f2798b7 | 1 2 3 4 5 6 7 8 9 10 11 12 | import os
from fastapi import FastAPI
from gradio import mount_gradio_app
from api_server import app as api_app
from app import demo
application = mount_gradio_app(api_app, demo, path="/ui")
if __name__ == "__main__":
import uvicorn
uvicorn.run(application, host="0.0.0.0", port=int(os.getenv("PORT", "8000")))
|