adorkin commited on
Commit
20183ab
·
verified ·
1 Parent(s): 81c80cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -11
app.py CHANGED
@@ -12,26 +12,20 @@ gr.Interface(
12
  fn=wrap_classifier,
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,
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.Label(label="Predicted label")
30
  ],
31
- enable_queue=True,
32
- allow_screenshot=False,
33
- allow_flagging=False,
34
- # examples=[
35
- # ["Indian state rolls out wireless broadband Government in South Indian state of Kerala sets up wireless kiosks as part of initiative to bridge digital divide."]
36
- # ]
37
- ).launch(debug=True)
 
12
  fn=wrap_classifier,
13
  title="Zero-shot Classification",
14
  inputs=[
15
+ gr.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.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.Textbox(lines=1, label="Template", default="The topic of this text is {}.", placeholder="The topic of this text is {}.")
27
  ],
28
  outputs=[
29
+ gr.Label(label="Predicted label")
30
  ],
31
+ ).launch()