adorkin commited on
Commit
c4e0334
1 Parent(s): ea8f407

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -12,9 +12,18 @@ gr.Interface(
12
  fn=wrap_classifier,
13
  title="Zero-shot Classification",
14
  inputs=[
15
- gr.inputs.Textbox(lines=5, label="Text to classify"),
16
- gr.inputs.Textbox(lines=1, label="Candidate labels separated with commas"),
17
- gr.inputs.Textbox(lines=1, label="Template", default="This sentence is about {}.", placeholder="This sentence is about {}.")
 
 
 
 
 
 
 
 
 
18
  ],
19
  outputs=[
20
  gr.outputs.Textbox(label="Label")
 
12
  fn=wrap_classifier,
13
  title="Zero-shot Classification",
14
  inputs=[
15
+ gr.inputs.Textbox(
16
+ lines=5,
17
+ label="Text to classify",
18
+ placeholder="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,
22
+ label="Candidate labels separated with commas (no spaces)",
23
+ default="World,Sports,Business,Sci/Tech",
24
+ placeholder="World,Sports,Business,Sci/Tech",
25
+ ),
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="Label")