Rijgersberg commited on
Commit
c44304d
·
verified ·
1 Parent(s): 76f779d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def generate(message, history, model, system_prompt,
32
  if isinstance(user, tuple): # there were files
33
  mime_type = get_mimetype(filepath)
34
  if not mime_type.contains('image'):
35
- raise gradio.Error("Momenteel zijn alleen afbeeldingen ondersteund als bijlagen 💥!", duration=5)
36
  content = [
37
  {"type": "image_url",
38
  # for some reason you don't get the same image format in history as in message
 
32
  if isinstance(user, tuple): # there were files
33
  mime_type = get_mimetype(filepath)
34
  if not mime_type.contains('image'):
35
+ raise gr.Error("Momenteel zijn alleen afbeeldingen ondersteund als bijlagen 💥!", duration=5)
36
  content = [
37
  {"type": "image_url",
38
  # for some reason you don't get the same image format in history as in message