Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -740,7 +740,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
|
|
740 |
logging.info(f"Agent response: text='{str(agent_text_response)[:100]}...', image_path='{agent_image_path}'")
|
741 |
|
742 |
if agent_image_path and os.path.exists(agent_image_path):
|
743 |
-
|
744 |
|
745 |
if text_for_display.strip(): # If there's actual text, add it as the first bot message
|
746 |
bot_response_list_for_history.append(text_for_display)
|
|
|
740 |
logging.info(f"Agent response: text='{str(agent_text_response)[:100]}...', image_path='{agent_image_path}'")
|
741 |
|
742 |
if agent_image_path and os.path.exists(agent_image_path):
|
743 |
+
text_for_display = str(agent_text_response) if agent_text_response is not None else ""
|
744 |
|
745 |
if text_for_display.strip(): # If there's actual text, add it as the first bot message
|
746 |
bot_response_list_for_history.append(text_for_display)
|