Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -354,7 +354,7 @@ demo = gr.Interface(
|
|
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 |
-
|
358 |
)
|
359 |
|
360 |
# Launch the interface
|
@@ -363,6 +363,5 @@ if __name__ == "__main__":
|
|
363 |
demo.launch(
|
364 |
server_name="0.0.0.0", # Allow external connections
|
365 |
server_port=7860,
|
366 |
-
share=False
|
367 |
-
api_open=True # This is important - it enables the API endpoints
|
368 |
)
|
|
|
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 |
+
flagging_mode="never" # Updated from allow_flagging
|
358 |
)
|
359 |
|
360 |
# Launch the interface
|
|
|
363 |
demo.launch(
|
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 |
)
|