Spaces:
Running
Running
Commit
·
e8f6a9d
1
Parent(s):
4bf65d5
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,9 +62,9 @@ exit_value=3
|
|
| 62 |
|
| 63 |
classifier = MyClassifier(model,tokenizer,label_list,output_mode,exit_type,exit_value,model_name)
|
| 64 |
|
| 65 |
-
def greet(text,text2
|
| 66 |
text_input = [(text,text2)]
|
| 67 |
return classifier.get_prob(text_input)
|
| 68 |
|
| 69 |
-
iface = gr.Interface(fn=greet, inputs=["text","text"
|
| 70 |
iface.launch()
|
|
|
|
| 62 |
|
| 63 |
classifier = MyClassifier(model,tokenizer,label_list,output_mode,exit_type,exit_value,model_name)
|
| 64 |
|
| 65 |
+
def greet(text,text2):
|
| 66 |
text_input = [(text,text2)]
|
| 67 |
return classifier.get_prob(text_input)
|
| 68 |
|
| 69 |
+
iface = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")
|
| 70 |
iface.launch()
|