Spaces:
Runtime error
Runtime error
ageraustine
commited on
Commit
•
1568509
1
Parent(s):
7c38857
Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ container = st.container()
|
|
123 |
|
124 |
@st.cache_resource
|
125 |
def query(payload):
|
126 |
-
for output in graph.stream([HumanMessage(content=payload], config=config):
|
127 |
if "__end__" in output:
|
128 |
continue
|
129 |
# stream() yields dictionaries with output keyed by node name
|
|
|
123 |
|
124 |
@st.cache_resource
|
125 |
def query(payload):
|
126 |
+
for output in graph.stream([HumanMessage(content=payload)], config=config):
|
127 |
if "__end__" in output:
|
128 |
continue
|
129 |
# stream() yields dictionaries with output keyed by node name
|