umer70112254 commited on
Commit
2a774b6
·
1 Parent(s): 4dec853

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def zeroShotClassification(text_input, candidate_labels):
11
  output[prediction['labels'][i]] = prediction['scores'][i]
12
  return output
13
 
14
- examples = [["One day I will see the world", "travel, live, die, future"]]
15
 
16
  demo = gr.Interface(fn=zeroShotClassification, inputs=[gr.Textbox(label="Input"), gr.Textbox(label="Candidate Labels")], outputs=gr.Label(label="Classification"), title="Umer Text Classification", examples=examples,)
17
  demo.launch(True)
 
11
  output[prediction['labels'][i]] = prediction['scores'][i]
12
  return output
13
 
14
+ examples = [["I made education free for students", "education, cost, needs, future"]]
15
 
16
  demo = gr.Interface(fn=zeroShotClassification, inputs=[gr.Textbox(label="Input"), gr.Textbox(label="Candidate Labels")], outputs=gr.Label(label="Classification"), title="Umer Text Classification", examples=examples,)
17
  demo.launch(True)