Update app.py
Browse files
app.py
CHANGED
|
@@ -353,10 +353,9 @@ 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 |
-
api_name="predict",
|
| 357 |
-
allow_flagging="never"
|
| 358 |
-
|
| 359 |
-
) # Removed extra parenthesis here
|
| 360 |
|
| 361 |
# Launch the interface
|
| 362 |
if __name__ == "__main__":
|
|
@@ -365,6 +364,5 @@ if __name__ == "__main__":
|
|
| 365 |
server_name="0.0.0.0", # Allow external connections
|
| 366 |
server_port=7860,
|
| 367 |
share=False, # Don't use share since you're on Spaces
|
| 368 |
-
enable_queue=True,
|
| 369 |
api_open=True # This is important - it enables the API endpoints
|
| 370 |
)
|
|
|
|
| 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 |
+
api_name="predict",
|
| 357 |
+
allow_flagging="never"
|
| 358 |
+
)
|
|
|
|
| 359 |
|
| 360 |
# Launch the interface
|
| 361 |
if __name__ == "__main__":
|
|
|
|
| 364 |
server_name="0.0.0.0", # Allow external connections
|
| 365 |
server_port=7860,
|
| 366 |
share=False, # Don't use share since you're on Spaces
|
|
|
|
| 367 |
api_open=True # This is important - it enables the API endpoints
|
| 368 |
)
|