anisotropies commited on
Commit
1229f05
·
verified ·
1 Parent(s): 4353dcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,10 +15,10 @@ def yes_man(message, history):
15
  #else:
16
  # return "Ask me anything!"
17
  data = [{'error':'just started'}]
18
- while not 'generated_text' not in list(data[0].keys()):
19
  data = query({"inputs": message})
20
  print(data)
21
- return data
22
  gr.ChatInterface(
23
  yes_man,
24
  chatbot=gr.Chatbot(height=300),
 
15
  #else:
16
  # return "Ask me anything!"
17
  data = [{'error':'just started'}]
18
+ while 'generated_text' not in list(data[0].keys()):
19
  data = query({"inputs": message})
20
  print(data)
21
+ return data[0]['generated_text']
22
  gr.ChatInterface(
23
  yes_man,
24
  chatbot=gr.Chatbot(height=300),