Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -224,7 +224,7 @@ gstate = VisitorState(
|
|
224 |
)
|
225 |
# Execute workflow
|
226 |
#result = compiled_graph.invoke(gstate.dict())
|
227 |
-
result = compiled_graph.invoke(gstate.model_dump())
|
228 |
|
229 |
|
230 |
# ---------------------------------------
|
@@ -241,9 +241,9 @@ def gradio_interface(visitor_name, visitor_mobile, visitor_email, doctor_name, d
|
|
241 |
)
|
242 |
# Execute workflow
|
243 |
#result = compiled_graph.invoke(state.dict())
|
244 |
-
|
245 |
-
|
246 |
-
return "Here returning a string for testing gradio interface!" + visitor_name
|
247 |
|
248 |
|
249 |
iface = gr.Interface(
|
|
|
224 |
)
|
225 |
# Execute workflow
|
226 |
#result = compiled_graph.invoke(gstate.dict())
|
227 |
+
#result = compiled_graph.invoke(gstate.model_dump())
|
228 |
|
229 |
|
230 |
# ---------------------------------------
|
|
|
241 |
)
|
242 |
# Execute workflow
|
243 |
#result = compiled_graph.invoke(state.dict())
|
244 |
+
result = compiled_graph.invoke(state.model_dump())
|
245 |
+
return "\n".join(result["messages"])
|
246 |
+
#return "Here returning a string for testing gradio interface!" + visitor_name
|
247 |
|
248 |
|
249 |
iface = gr.Interface(
|