kawaiipeace commited on
Commit
fa004e9
·
1 Parent(s): 5e20b74

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -122,4 +122,7 @@ with gr.Blocks() as demo:
122
 
123
  # ถ้าจะ mount เข้า FastAPI ใช้คำสั่งด้านล่างนี้
124
  # แล้วรันคำสั่ง uvicorn app:app --host 0.0.0.0 --port 7860 ใน Terminal
125
- app = gr.mount_gradio_app(app, demo, path="/")
 
 
 
 
122
 
123
  # ถ้าจะ mount เข้า FastAPI ใช้คำสั่งด้านล่างนี้
124
  # แล้วรันคำสั่ง uvicorn app:app --host 0.0.0.0 --port 7860 ใน Terminal
125
+ # app = gr.mount_gradio_app(app, demo, path="/")
126
+
127
+ if __name__ == "__main__":
128
+ demo.launch()