Spaces:
Sleeping
Sleeping
fixed app.py file
Browse files
app.py
CHANGED
|
@@ -289,4 +289,10 @@ with demo:
|
|
| 289 |
gr.HTML(f"<p style='text-align: center; color: #666; font-size: 0.9em;'>Model Status: {get_model_info()}</p>")
|
| 290 |
|
| 291 |
if __name__ == "__main__":
|
| 292 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
gr.HTML(f"<p style='text-align: center; color: #666; font-size: 0.9em;'>Model Status: {get_model_info()}</p>")
|
| 290 |
|
| 291 |
if __name__ == "__main__":
|
| 292 |
+
# For Hugging Face Spaces deployment
|
| 293 |
+
demo.launch(
|
| 294 |
+
server_name="0.0.0.0",
|
| 295 |
+
server_port=7860,
|
| 296 |
+
show_error=True,
|
| 297 |
+
share=True # Enable public URL sharing
|
| 298 |
+
)
|