Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,7 +84,8 @@ dictionary={'LABEL_0':'activate_my_card',
|
|
| 84 |
|
| 85 |
def greet(text, dictionary=dictionary):
|
| 86 |
response = pipe(text)
|
| 87 |
-
return dictionary[response[0]['label']]
|
|
|
|
| 88 |
|
| 89 |
demo = gr.Interface(fn=greet,
|
| 90 |
inputs="text",
|
|
|
|
| 84 |
|
| 85 |
def greet(text, dictionary=dictionary):
|
| 86 |
response = pipe(text)
|
| 87 |
+
#return dictionary[response[0]['label']]
|
| 88 |
+
return response[0]['label']
|
| 89 |
|
| 90 |
demo = gr.Interface(fn=greet,
|
| 91 |
inputs="text",
|