themissingCRAM
commited on
Commit
·
355085b
1
Parent(s):
cca0aa7
blocks experiment
Browse files
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(
|
133 |
-
print(
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
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
|