m-ric HF Staff commited on
Commit
bf50fd5
·
1 Parent(s): 674cae2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -525,7 +525,7 @@ class EnrichedGradioUI(GradioUI):
525
  yield stored_messages
526
 
527
  for msg in stream_to_gradio(session_state["agent"], task=task_input, reset_agent_memory=False):
528
- if hasattr(session_state["agent"], "last_screenshot") and msg.content == "-----": # Append the last screenshot before the end of step
529
  stored_messages.append(gr.ChatMessage(
530
  role="assistant",
531
  content={"path": session_state["agent"].last_marked_screenshot.to_string(), "mime_type": "image/png"},
 
525
  yield stored_messages
526
 
527
  for msg in stream_to_gradio(session_state["agent"], task=task_input, reset_agent_memory=False):
528
+ if hasattr(session_state["agent"], "last_marked_screenshot") and msg.content == "-----": # Append the last screenshot before the end of step
529
  stored_messages.append(gr.ChatMessage(
530
  role="assistant",
531
  content={"path": session_state["agent"].last_marked_screenshot.to_string(), "mime_type": "image/png"},