Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,9 @@ gr.Interface(
|
|
13 |
title="Zero-shot Classification",
|
14 |
inputs=[
|
15 |
gr.inputs.Textbox(
|
16 |
-
lines=
|
17 |
label="Text to classify",
|
18 |
-
|
19 |
),
|
20 |
gr.inputs.Textbox(
|
21 |
lines=1,
|
@@ -26,7 +26,7 @@ gr.Interface(
|
|
26 |
gr.inputs.Textbox(lines=1, label="Template", default="The topic of this text is {}.", placeholder="The topic of this text is {}.")
|
27 |
],
|
28 |
outputs=[
|
29 |
-
gr.outputs.Textbox(label="
|
30 |
],
|
31 |
enable_queue=True,
|
32 |
allow_screenshot=False,
|
|
|
13 |
title="Zero-shot Classification",
|
14 |
inputs=[
|
15 |
gr.inputs.Textbox(
|
16 |
+
lines=3,
|
17 |
label="Text to classify",
|
18 |
+
default="Sneaky Credit Card Tactics Keep an eye on your credit card issuers -- they may be about to raise your rates."
|
19 |
),
|
20 |
gr.inputs.Textbox(
|
21 |
lines=1,
|
|
|
26 |
gr.inputs.Textbox(lines=1, label="Template", default="The topic of this text is {}.", placeholder="The topic of this text is {}.")
|
27 |
],
|
28 |
outputs=[
|
29 |
+
gr.outputs.Textbox(label="Predicted label")
|
30 |
],
|
31 |
enable_queue=True,
|
32 |
allow_screenshot=False,
|