Spaces:
Sleeping
Sleeping
Debug print
Browse files- Gradio_UI.py +3 -0
Gradio_UI.py
CHANGED
|
@@ -185,6 +185,9 @@ def stream_to_gradio(
|
|
| 185 |
# mais pour l’instant on laisse image_path = None.
|
| 186 |
|
| 187 |
elif isinstance(final_answer, AgentImage):
|
|
|
|
|
|
|
|
|
|
| 188 |
# On convertit l'AgentImage en fichier sur disque
|
| 189 |
image_path = save_agent_image_to_tmp(final_answer)
|
| 190 |
|
|
|
|
| 185 |
# mais pour l’instant on laisse image_path = None.
|
| 186 |
|
| 187 |
elif isinstance(final_answer, AgentImage):
|
| 188 |
+
print("DEBUG AgentImage type:", type(final_answer))
|
| 189 |
+
print("DEBUG AgentImage to_string:", final_answer.to_string())
|
| 190 |
+
print("DEBUG AgentImage to_raw:", type(final_answer.to_raw()))
|
| 191 |
# On convertit l'AgentImage en fichier sur disque
|
| 192 |
image_path = save_agent_image_to_tmp(final_answer)
|
| 193 |
|