thangvip's picture
fix: run custom Gradio Server with Uvicorn
fd3e7ca verified
raw
history blame contribute delete
278 Bytes
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent / "src"))
from compliment_forest.server import create_app
app = create_app()
demo = app
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=7860)