Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ emojis = ['😊', '🤗', '🥺', '😅', '🤭', '😔', '✨', '😜', '🙏']
|
|
| 19 |
def ask_openai_with_image(instruction, image):
|
| 20 |
if not instruction and not image:
|
| 21 |
emj = random.choice(emojis)
|
| 22 |
-
raise gr.Error(f"{emj}
|
| 23 |
return None
|
| 24 |
if image != None:
|
| 25 |
# Кодируем загруженное изображение в base64
|
|
|
|
| 19 |
def ask_openai_with_image(instruction, image):
|
| 20 |
if not instruction and not image:
|
| 21 |
emj = random.choice(emojis)
|
| 22 |
+
raise gr.Error(f"{emj} Заполни пожалуйста хотя бы 1 поле")
|
| 23 |
return None
|
| 24 |
if image != None:
|
| 25 |
# Кодируем загруженное изображение в base64
|