Spaces:
Running
Running
adamtayzzz
commited on
Commit
•
4bf65d5
1
Parent(s):
2c7bd4b
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ classifier = MyClassifier(model,tokenizer,label_list,output_mode,exit_type,exit_
|
|
64 |
|
65 |
def greet(text,text2,exit_pos):
|
66 |
text_input = [(text,text2)]
|
67 |
-
return classifier.
|
68 |
|
69 |
iface = gr.Interface(fn=greet, inputs=["text","text","number"], outputs="text")
|
70 |
iface.launch()
|
|
|
64 |
|
65 |
def greet(text,text2,exit_pos):
|
66 |
text_input = [(text,text2)]
|
67 |
+
return classifier.get_prob(text_input)
|
68 |
|
69 |
iface = gr.Interface(fn=greet, inputs=["text","text","number"], outputs="text")
|
70 |
iface.launch()
|