Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1029,11 +1029,11 @@ def answer_question(user_question):
|
|
| 1029 |
"""
|
| 1030 |
Send the user input to your LangGraph agent and return the response.
|
| 1031 |
"""
|
| 1032 |
-
|
| 1033 |
-
|
| 1034 |
-
|
| 1035 |
|
| 1036 |
-
return user_question
|
| 1037 |
|
| 1038 |
def answer_from_audio(audio):
|
| 1039 |
text = transcribe_speech(audio)
|
|
|
|
| 1029 |
"""
|
| 1030 |
Send the user input to your LangGraph agent and return the response.
|
| 1031 |
"""
|
| 1032 |
+
result = safe_app.invoke({"messages": user_question})
|
| 1033 |
+
agent_answer = result["output"]
|
| 1034 |
+
return agent_answer
|
| 1035 |
|
| 1036 |
+
# return user_question
|
| 1037 |
|
| 1038 |
def answer_from_audio(audio):
|
| 1039 |
text = transcribe_speech(audio)
|