Spaces:
Sleeping
Sleeping
Fix Hugging Face Spaces compatibility
Browse files- Fix indentation error in app.launch()
- Set share=True for Hugging Face Spaces environment
- Remove server_name and server_port (auto-configured)
- Disable ssr_mode to prevent locale errors
app.py
CHANGED
|
@@ -1211,9 +1211,8 @@ def create_app():
|
|
| 1211 |
if __name__ == "__main__":
|
| 1212 |
app = create_app()
|
| 1213 |
app.launch(
|
| 1214 |
-
|
| 1215 |
-
server_port=7860,
|
| 1216 |
-
share=False,
|
| 1217 |
show_error=True,
|
| 1218 |
-
auth=auth_fn
|
|
|
|
| 1219 |
)
|
|
|
|
| 1211 |
if __name__ == "__main__":
|
| 1212 |
app = create_app()
|
| 1213 |
app.launch(
|
| 1214 |
+
share=True,
|
|
|
|
|
|
|
| 1215 |
show_error=True,
|
| 1216 |
+
auth=auth_fn,
|
| 1217 |
+
ssr_mode=False
|
| 1218 |
)
|