themissingCRAM commited on
Commit
355085b
·
1 Parent(s): cca0aa7

blocks experiment

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -129,10 +129,13 @@ if __name__ == "__main__":
129
  # agent.run("What is the average each customer paid?")
130
  # GradioUI(agent).launch()
131
 
132
- def enter_message(text, chat_history):
133
- print(text)
134
- chat_history.append({"role": "user", "content": text})
135
- x = agent.run(chat_history)
 
 
 
136
  print(type(x))
137
  print(x)
138
  return "", x
 
129
  # agent.run("What is the average each customer paid?")
130
  # GradioUI(agent).launch()
131
 
132
+ def enter_message(message, chat_history):
133
+ print()
134
+ print("enter_message debug")
135
+ print(message)
136
+ print(chat_history)
137
+ chat_history.append({"role": "user", "content": message})
138
+ x = agent.run(message)
139
  print(type(x))
140
  print(x)
141
  return "", x