ea4all-gradio-agents-mcp-hackathon-vqa-empty-img-error
Browse files- ea4all/ea4all_mcp.py +1 -1
ea4all/ea4all_mcp.py
CHANGED
@@ -113,7 +113,7 @@ async def run_vqa_agentic_system(question: str, diagram: str, request: gr.Reques
|
|
113 |
print(f"Prompt: {message}")
|
114 |
|
115 |
chat_memory = []
|
116 |
-
if message['files']
|
117 |
chat_memory.append(ChatMessage(role="assistant", content="Please upload an Architecture PNG, JPEG diagram to start!"))
|
118 |
yield chat_memory
|
119 |
else:
|
|
|
113 |
print(f"Prompt: {message}")
|
114 |
|
115 |
chat_memory = []
|
116 |
+
if message['files'] in ([], None):
|
117 |
chat_memory.append(ChatMessage(role="assistant", content="Please upload an Architecture PNG, JPEG diagram to start!"))
|
118 |
yield chat_memory
|
119 |
else:
|