mgbam commited on
Commit
5b301ab
·
verified ·
1 Parent(s): 5190b9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ async def handle_user_idea(idea: str):
17
  title=app_assets["blueprint"].get("title", "RoboApp"),
18
  description=app_assets["blueprint"].get("description", "AI-powered robot app.")
19
  )
20
- app_ui.launch(share=True)
21
  return "✅ App Launched"
22
 
23
  def run_app():
@@ -34,7 +34,7 @@ Speak or type your robot idea and we’ll generate, simulate, and deploy it live
34
 
35
  launch_btn.click(fn=run_async, inputs=user_idea, outputs=out)
36
 
37
- demo.launch(share=True)
38
 
39
  if __name__ == "__main__":
40
  run_app()
 
17
  title=app_assets["blueprint"].get("title", "RoboApp"),
18
  description=app_assets["blueprint"].get("description", "AI-powered robot app.")
19
  )
20
+ app_ui.launch() # share=True is unnecessary inside Hugging Face Spaces
21
  return "✅ App Launched"
22
 
23
  def run_app():
 
34
 
35
  launch_btn.click(fn=run_async, inputs=user_idea, outputs=out)
36
 
37
+ demo.launch()
38
 
39
  if __name__ == "__main__":
40
  run_app()