OppaAI commited on
Commit
acccc23
·
verified ·
1 Parent(s): 782a6c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -124,5 +124,13 @@ demo = gr.Interface(
124
  )
125
 
126
  if __name__ == "__main__":
 
 
 
 
 
 
 
 
127
 
128
  demo.launch(mcp_server=True)
 
124
  )
125
 
126
  if __name__ == "__main__":
127
+ # Run FastMCP server *in the same process* (blocking)
128
+ import threading
129
+
130
+ def run_mcp():
131
+ mcp.run(transport="stdio")
132
+
133
+ t = threading.Thread(target=run_mcp, daemon=True)
134
+ t.start()
135
 
136
  demo.launch(mcp_server=True)