Mr-Vicky-01 commited on
Commit
c395f1c
·
verified ·
1 Parent(s): ca7391d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def get_response(text_input, image_input):
21
  image_input = Image.fromarray(np.uint8(image_input))
22
 
23
  if text_input == '' and image_input is None:
24
- return "Please provide a text and an image."
25
 
26
  if text_input != '' and image_input is not None:
27
  response = model1.generate_content([text_input, image_input])
 
21
  image_input = Image.fromarray(np.uint8(image_input))
22
 
23
  if text_input == '' and image_input is None:
24
+ return "Please provide a text or image."
25
 
26
  if text_input != '' and image_input is not None:
27
  response = model1.generate_content([text_input, image_input])