vasanthfeb13 commited on
Commit
6104a7e
·
1 Parent(s): 0241d11

Fix: Rename 'app' to 'api_app' to avoid Gradio SDK confusion

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -56,8 +56,9 @@ print(f"✅ Auto-registered local node: {local_node_def.node_id}")
56
  orchestrator_app = create_app(service)
57
 
58
  # 4. Create a combined FastAPI app
59
- app = FastAPI()
60
- app.mount("/api", orchestrator_app)
 
61
 
62
  def start_local_node():
63
  """Start a local node in the background for the HF Space demo."""
 
56
  orchestrator_app = create_app(service)
57
 
58
  # 4. Create a combined FastAPI app
59
+ # 4. Create a combined FastAPI app (renamed to avoid Gradio SDK confusion)
60
+ api_app = FastAPI()
61
+ api_app.mount("/api", orchestrator_app)
62
 
63
  def start_local_node():
64
  """Start a local node in the background for the HF Space demo."""