Update app.py
Browse files
app.py
CHANGED
|
@@ -353,9 +353,18 @@ demo = gr.Interface(
|
|
| 353 |
["This is a sample text written by a human. It contains multiple sentences with different ideas. The analysis will show how each sentence is classified.", "quick"],
|
| 354 |
["This is a sample text written by a human. It contains multiple sentences with different ideas. The analysis will show how each sentence is classified.", "detailed"],
|
| 355 |
],
|
| 356 |
-
allow_flagging="never"
|
|
|
|
| 357 |
)
|
| 358 |
|
| 359 |
-
# Launch
|
| 360 |
if __name__ == "__main__":
|
| 361 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 353 |
["This is a sample text written by a human. It contains multiple sentences with different ideas. The analysis will show how each sentence is classified.", "quick"],
|
| 354 |
["This is a sample text written by a human. It contains multiple sentences with different ideas. The analysis will show how each sentence is classified.", "detailed"],
|
| 355 |
],
|
| 356 |
+
allow_flagging="never",
|
| 357 |
+
analytics_enabled=False
|
| 358 |
)
|
| 359 |
|
| 360 |
+
# Launch with specific configuration
|
| 361 |
if __name__ == "__main__":
|
| 362 |
+
demo.launch(
|
| 363 |
+
server_name="0.0.0.0", # Listen on all network interfaces
|
| 364 |
+
server_port=7860, # Use standard Gradio port
|
| 365 |
+
share=False, # Disable sharing
|
| 366 |
+
debug=True, # Enable debug mode for better error messages
|
| 367 |
+
enable_queue=True, # Enable queuing for better handling of multiple requests
|
| 368 |
+
show_error=True, # Show detailed error messages
|
| 369 |
+
ssr=False # Disable server-side rendering
|
| 370 |
+
)
|