GlobalBusinessAdvisors commited on
Commit
e66ae50
1 Parent(s): 4018334

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -1,15 +1,8 @@
1
  import uvicorn
2
- from threading import Thread
3
- from app.gradio_ui import create_ui
4
-
5
- def start_gradio_ui():
6
- create_ui()
7
 
8
  if __name__ == "__main__":
9
- # Start the Gradio UI in a separate thread
10
- ui_thread = Thread(target=start_gradio_ui)
11
- ui_thread.start()
12
-
13
- # Run the FastAPI app
14
  uvicorn.run("app.main:app", host="0.0.0.0", port=8000, reload=True)
15
 
 
 
1
  import uvicorn
2
+ from ui.gradio_ui import create_ui
 
 
 
 
3
 
4
  if __name__ == "__main__":
5
+ create_ui()
 
 
 
 
6
  uvicorn.run("app.main:app", host="0.0.0.0", port=8000, reload=True)
7
 
8
+