Spaces:
Sleeping
Sleeping
updates to test log
#37
by
adithyagv
- opened
- Gradio_UI.py +7 -4
Gradio_UI.py
CHANGED
|
@@ -221,13 +221,16 @@ class GradioUI:
|
|
| 221 |
|
| 222 |
def interact_with_agent(self, prompt, stored_messages):
|
| 223 |
import gradio as gr
|
| 224 |
-
print(
|
|
|
|
|
|
|
|
|
|
| 225 |
stored_messages = [] # Initialize as an empty list HERE
|
| 226 |
stored_messages.append(gr.ChatMessage(role="user", content=prompt))
|
| 227 |
yield stored_messages
|
| 228 |
-
for msg in stream_to_gradio(self.agent, task=prompt, reset_agent_memory=False):
|
| 229 |
-
|
| 230 |
-
|
| 231 |
yield stored_messages
|
| 232 |
|
| 233 |
def upload_file(
|
|
|
|
| 221 |
|
| 222 |
def interact_with_agent(self, prompt, stored_messages):
|
| 223 |
import gradio as gr
|
| 224 |
+
print("interact_with_agent function CALLED!") # <--- ADD THIS LINE - CRUCIAL DEBUG PRINT
|
| 225 |
+
logging.debug(f"Type of prompt in interact_with_agent: {type(prompt)}") # Keep logging for now
|
| 226 |
+
logging.debug(f"Value of prompt in interact_with_agent: {prompt}") # Keep logging for now
|
| 227 |
+
|
| 228 |
stored_messages = [] # Initialize as an empty list HERE
|
| 229 |
stored_messages.append(gr.ChatMessage(role="user", content=prompt))
|
| 230 |
yield stored_messages
|
| 231 |
+
#for msg in stream_to_gradio(self.agent, task=prompt, reset_agent_memory=False):
|
| 232 |
+
# stored_messages.append(msg)
|
| 233 |
+
# yield stored_messages
|
| 234 |
yield stored_messages
|
| 235 |
|
| 236 |
def upload_file(
|