FahadAlam commited on
Commit
3004198
1 Parent(s): e38c009

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,5 +13,5 @@ def zeroShotClassification(text_input, candidate_labels):
13
 
14
  examples = [["One day I will see the world", "travel, live, die, future"]]
15
 
16
- demo = gr.Interface(fn=zeroShotClassification, inputs=["text", "text"], outputs="label", title="Text Classification", examples=examples)
17
  demo.launch()
 
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"), examples=examples)
17
  demo.launch()