Voiid-m commited on
Commit
800cf25
·
verified ·
1 Parent(s): 1b0f9d0

DEBUG interact

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +3 -1
Gradio_UI.py CHANGED
@@ -235,12 +235,14 @@ class GradioUI:
235
 
236
  def interact_with_agent(self, prompt, messages, current_image):
237
  import gradio as gr
238
-
 
239
  messages.append(gr.ChatMessage(role="user", content=prompt))
240
  yield messages, current_image
241
 
242
  new_image = current_image
243
  for msg, image_path in stream_to_gradio(self.agent, task=prompt, reset_agent_memory=False):
 
244
  messages.append(msg)
245
  if image_path is not None:
246
  new_image = image_path
 
235
 
236
  def interact_with_agent(self, prompt, messages, current_image):
237
  import gradio as gr
238
+
239
+ print("DEBUG_INTERACT_IN:", type(messages), messages)
240
  messages.append(gr.ChatMessage(role="user", content=prompt))
241
  yield messages, current_image
242
 
243
  new_image = current_image
244
  for msg, image_path in stream_to_gradio(self.agent, task=prompt, reset_agent_memory=False):
245
+ print("DEBUG_MSG:", msg.role, repr(msg.content))
246
  messages.append(msg)
247
  if image_path is not None:
248
  new_image = image_path