Spaces:
Sleeping
Sleeping
wang.lingxiao
commited on
Commit
·
9ca24f2
1
Parent(s):
104a399
merge
Browse files
app.py
CHANGED
|
@@ -320,8 +320,8 @@ async def async_main():
|
|
| 320 |
# 创建界面
|
| 321 |
app = create_interface()
|
| 322 |
|
| 323 |
-
# 启动应用(适配 Hugging Face Spaces
|
| 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}")
|