Meetpatel006 commited on
Commit
795f7b7
·
unverified ·
1 Parent(s): 8327f03

Update run.py

Browse files

The application should start without the import error in run file

Files changed (1) hide show
  1. run.py +4 -3
run.py CHANGED
@@ -79,10 +79,11 @@ def run_gradio_interface(port=7860):
79
  if mcp_server_dir not in sys.path:
80
  sys.path.insert(0, mcp_server_dir)
81
 
82
- # Import and run the Gradio app
83
- from app import demo
84
 
85
- # Launch the Gradio interface
 
86
  demo.launch(
87
  server_name="0.0.0.0",
88
  server_port=port,
 
79
  if mcp_server_dir not in sys.path:
80
  sys.path.insert(0, mcp_server_dir)
81
 
82
+ # Import and create the Gradio app
83
+ from app import create_gradio_interface
84
 
85
+ # Create and launch the Gradio interface
86
+ demo = create_gradio_interface()
87
  demo.launch(
88
  server_name="0.0.0.0",
89
  server_port=port,