Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def predict(text, chosen_model):
|
|
36 |
label = result[0]['label']
|
37 |
score = result[0]['score']
|
38 |
|
39 |
-
return label
|
40 |
|
41 |
inputs = [
|
42 |
gr.Textbox(label="Text", value= app_examples[0][0]),
|
@@ -45,7 +45,7 @@ inputs = [
|
|
45 |
|
46 |
outputs = [
|
47 |
gr.Label(label="Result"),
|
48 |
-
gr.Markdown()
|
49 |
]
|
50 |
|
51 |
|
|
|
36 |
label = result[0]['label']
|
37 |
score = result[0]['score']
|
38 |
|
39 |
+
return label#, score
|
40 |
|
41 |
inputs = [
|
42 |
gr.Textbox(label="Text", value= app_examples[0][0]),
|
|
|
45 |
|
46 |
outputs = [
|
47 |
gr.Label(label="Result"),
|
48 |
+
#gr.Markdown()
|
49 |
]
|
50 |
|
51 |
|