Spaces:
Sleeping
Sleeping
Charles Azam
commited on
Commit
·
dddbd63
1
Parent(s):
d976f37
fix: when final answer is empty
Browse files
src/deepengineer/backend/gradio_tools.py
CHANGED
@@ -70,7 +70,7 @@ def run_agent_stream(user_input: str, model_id: str = "mistral/mistral-medium-la
|
|
70 |
log_buffer += log_line + "\n"
|
71 |
|
72 |
# Process the final answer to include images
|
73 |
-
final_answer = answer_container["text"]
|
74 |
image_dir = answer_container["image_dir"]
|
75 |
|
76 |
if final_answer and image_dir:
|
|
|
70 |
log_buffer += log_line + "\n"
|
71 |
|
72 |
# Process the final answer to include images
|
73 |
+
final_answer = answer_container["text"] or "Something went wrong"
|
74 |
image_dir = answer_container["image_dir"]
|
75 |
|
76 |
if final_answer and image_dir:
|