surfiniaburger commited on
Commit
25a899a
·
1 Parent(s): 340b295
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -140,7 +140,7 @@ def create_connected_mode_ui():
140
  data=image_data
141
  )
142
  )
143
- text_part = types.Part.from_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
 
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