ApsidalSolid4 commited on
Commit
f1102ba
·
verified ·
1 Parent(s): 47d3dab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- allow_flagging="never"
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, # Don't use share since you're on Spaces
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
  )