wang.lingxiao commited on
Commit
9ca24f2
·
1 Parent(s): 104a399
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -320,8 +320,8 @@ async def async_main():
320
  # 创建界面
321
  app = create_interface()
322
 
323
- # 启动应用(适配 Hugging Face Spaces,不要指定端口和 server_name,也不要 share)
324
- app.launch(show_error=True)
325
 
326
  except Exception as e:
327
  logger.error(f"❌ Application startup failed: {e}")
 
320
  # 创建界面
321
  app = create_interface()
322
 
323
+ # 启动应用(适配 Hugging Face Spaces,必须加 share=True
324
+ app.launch(share=True, show_error=True)
325
 
326
  except Exception as e:
327
  logger.error(f"❌ Application startup failed: {e}")