ECUiVADE commited on
Commit
56e1315
·
verified ·
1 Parent(s): 2792094

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -163,11 +163,11 @@ def generate(prompt, history):
163
  history.append((prompt, response))
164
  context += response
165
  print (context)
166
- return response
167
 
168
  else:
169
  output = "Did you forget to enter your Details? Please go to the User Info Tab and Input your data. "
170
- return output
171
 
172
  def predict(input, chatbot, max_length, top_p, temperature, history):
173
  chatbot.append((input, ""))
 
163
  history.append((prompt, response))
164
  context += response
165
  print (context)
166
+ yield history
167
 
168
  else:
169
  output = "Did you forget to enter your Details? Please go to the User Info Tab and Input your data. "
170
+ yield output
171
 
172
  def predict(input, chatbot, max_length, top_p, temperature, history):
173
  chatbot.append((input, ""))