Spaces:
Sleeping
Sleeping
Commit
·
25a899a
1
Parent(s):
340b295
bug
Browse files
app.py
CHANGED
|
@@ -140,7 +140,7 @@ def create_connected_mode_ui():
|
|
| 140 |
data=image_data
|
| 141 |
)
|
| 142 |
)
|
| 143 |
-
text_part = types.Part
|
| 144 |
prompt = types.Content(parts=[image_part, text_part], role="user")
|
| 145 |
|
| 146 |
# Stream the response from the agent
|
|
|
|
| 140 |
data=image_data
|
| 141 |
)
|
| 142 |
)
|
| 143 |
+
text_part = types.Part(text=text or "Diagnose this plant and provide a remedy.")
|
| 144 |
prompt = types.Content(parts=[image_part, text_part], role="user")
|
| 145 |
|
| 146 |
# Stream the response from the agent
|