rifatramadhani commited on
Commit
fb325b8
·
1 Parent(s): b853b00
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -18,8 +18,9 @@ result = classifier(
18
 
19
  print(result)
20
 
21
- def greet(name):
22
- return "Hello " + name + "!!"
 
23
 
24
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
25
- demo.launch()
 
18
 
19
  print(result)
20
 
21
+ def greet(name, candidate_labels):
22
+ print(type(candidate_labels))
23
+ return "Hello " + name + "!!" + candidate_labels
24
 
25
+ demo = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")
26
+ demo.queue(api_open=True).launch()