Spaces:
Runtime error
Runtime error
rifatramadhani
commited on
Commit
·
fb325b8
1
Parent(s):
b853b00
wip
Browse files
app.py
CHANGED
@@ -18,8 +18,9 @@ result = classifier(
|
|
18 |
|
19 |
print(result)
|
20 |
|
21 |
-
def greet(name):
|
22 |
-
|
|
|
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()
|