Vladyslav Humennyy commited on
Commit
2ba0e3d
·
1 Parent(s): e892bca

Fix gradio errors

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -97,9 +97,7 @@ def user(user_message, image_data, history: list):
97
  {"type": "text", "text": text_content},
98
  {
99
  "type": "image",
100
- "path": tmp_path,
101
- "alt_text": "User uploaded image",
102
- "_base64": f"data:image/jpeg;base64,{img_base64}", # Store base64 for model
103
  },
104
  ],
105
  })
 
97
  {"type": "text", "text": text_content},
98
  {
99
  "type": "image",
100
+ "image": tmp_path, # Use 'image' key instead of 'path'
 
 
101
  },
102
  ],
103
  })