Rooni commited on
Commit
3edfc8d
·
1 Parent(s): c7b924a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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} Заполните пожалуйста хотя бы 1 поле")
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