karthikvarunn
commited on
Commit
•
c709cf5
1
Parent(s):
3b4933e
Update app.py
Browse files
app.py
CHANGED
@@ -60,11 +60,11 @@ def predict(text, classes):
|
|
60 |
demo = gr.Interface(
|
61 |
fn=predict,
|
62 |
inputs=[
|
63 |
-
gr.Textbox(lines=2, placeholder="Type
|
64 |
gr.Textbox(lines=2, placeholder="Possible labels, comma-separated", value="Doubt, Loaded Language, Jingoism, Hyperbole, no_propaganda")
|
65 |
],
|
66 |
outputs=gr.Label(num_top_classes=None), # Automatically render scores as a bar chart
|
67 |
-
title="
|
68 |
description="Enter text and labels to classify the text."
|
69 |
)
|
70 |
|
|
|
60 |
demo = gr.Interface(
|
61 |
fn=predict,
|
62 |
inputs=[
|
63 |
+
gr.Textbox(lines=2, placeholder="Type a sentence to find the propaganda technique...", value="This miracle drug can save lives!"),
|
64 |
gr.Textbox(lines=2, placeholder="Possible labels, comma-separated", value="Doubt, Loaded Language, Jingoism, Hyperbole, no_propaganda")
|
65 |
],
|
66 |
outputs=gr.Label(num_top_classes=None), # Automatically render scores as a bar chart
|
67 |
+
title="Zero-shot Classification for propaganda techniques",
|
68 |
description="Enter text and labels to classify the text."
|
69 |
)
|
70 |
|