acecalisto3 commited on
Commit
b6a4cdb
·
verified ·
1 Parent(s): fcca4f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -205,7 +205,7 @@ def run_action(purpose, task, history, directory, action_name, action_input):
205
 
206
  return "MAIN", None, history, task
207
 
208
- def run(purpose,history):
209
 
210
  #print(purpose)
211
  #print(hist)
@@ -236,14 +236,13 @@ def run(purpose,history):
236
  action_name,
237
  action_input,
238
  )
239
- yield (history)
240
  #yield ("",[(purpose,history)])
241
  if task == "END":
242
- return (history)
243
  #return ("", [(purpose,history)])
244
 
245
 
246
-
247
  ################################################
248
 
249
  def format_prompt(message, history):
 
205
 
206
  return "MAIN", None, history, task
207
 
208
+ def run(purpose, history):
209
 
210
  #print(purpose)
211
  #print(hist)
 
236
  action_name,
237
  action_input,
238
  )
239
+ yield (history) # Yield the updated chat history
240
  #yield ("",[(purpose,history)])
241
  if task == "END":
242
+ return "", history # Return an empty string for the Textbox and the chat history for the Chatbot
243
  #return ("", [(purpose,history)])
244
 
245
 
 
246
  ################################################
247
 
248
  def format_prompt(message, history):