Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -928,13 +928,15 @@ def main():
|
|
| 928 |
|
| 929 |
# HF Spaces optimized launch
|
| 930 |
demo.launch(
|
| 931 |
-
|
| 932 |
-
|
| 933 |
-
|
| 934 |
-
|
| 935 |
-
|
| 936 |
-
|
| 937 |
-
|
|
|
|
|
|
|
| 938 |
|
| 939 |
if __name__ == "__main__":
|
| 940 |
main()
|
|
|
|
| 928 |
|
| 929 |
# HF Spaces optimized launch
|
| 930 |
demo.launch(
|
| 931 |
+
server_name="0.0.0.0", # Listen on all network interfaces
|
| 932 |
+
server_port=7860, # Default Gradio port
|
| 933 |
+
share=True, # Enable sharing
|
| 934 |
+
debug=False, # Disable debug mode in production
|
| 935 |
+
auth=None, # No authentication required
|
| 936 |
+
show_api=True, # Show API documentation
|
| 937 |
+
max_threads=40, # Limit concurrent threads
|
| 938 |
+
enable_queue=True # Enable request queueing
|
| 939 |
+
)
|
| 940 |
|
| 941 |
if __name__ == "__main__":
|
| 942 |
main()
|