tensorgirl commited on
Commit
90bd4f9
1 Parent(s): 7634589

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.category)
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()