Commit
·
2a774b6
1
Parent(s):
4dec853
Update app.py
Browse files
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 = [["
|
| 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)
|