Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|