Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def classify_msg(message):
|
|
36 |
response.text[response.text.find("{") : response.text.rfind("}") + 1]
|
37 |
)
|
38 |
|
39 |
-
return gr.Label(json_response)
|
40 |
|
41 |
iface = gr.Interface(fn=classify_msg, inputs="text", outputs="text")
|
42 |
iface.launch()
|
|
|
36 |
response.text[response.text.find("{") : response.text.rfind("}") + 1]
|
37 |
)
|
38 |
|
39 |
+
return gr.Label(json_response.category)
|
40 |
|
41 |
iface = gr.Interface(fn=classify_msg, inputs="text", outputs="text")
|
42 |
iface.launch()
|