Rerandaka commited on
Commit
0f79359
·
verified ·
1 Parent(s): 1c8f4b1

added classify

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,8 @@ def classify(text):
19
  demo = gr.Interface(
20
  fn=classify,
21
  inputs=gr.Textbox(label="Enter text"),
22
- outputs=gr.Textbox(label="Prediction")
 
23
  )
24
 
25
  # ✅ Enable API and queue
 
19
  demo = gr.Interface(
20
  fn=classify,
21
  inputs=gr.Textbox(label="Enter text"),
22
+ outputs=gr.Textbox(label="Prediction"),
23
+ api_name="/classify"
24
  )
25
 
26
  # ✅ Enable API and queue