Commit
·
72eacc1
1
Parent(s):
d68ebfc
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,7 @@ def do_action(text):
|
|
| 8 |
candidate_labels = ['gun control', 'abortion', 'gender transition', 'freedom of speech', 'immigration', 'taxes']
|
| 9 |
result = classifier(text, candidate_labels)
|
| 10 |
|
| 11 |
-
|
| 12 |
-
return sentence
|
| 13 |
|
| 14 |
-
iface = gr.Interface(fn=do_action, inputs="text", outputs="
|
| 15 |
iface.launch()
|
|
|
|
| 8 |
candidate_labels = ['gun control', 'abortion', 'gender transition', 'freedom of speech', 'immigration', 'taxes']
|
| 9 |
result = classifier(text, candidate_labels)
|
| 10 |
|
| 11 |
+
return result
|
|
|
|
| 12 |
|
| 13 |
+
iface = gr.Interface(fn=do_action, inputs="text", outputs="label")
|
| 14 |
iface.launch()
|