KingNish commited on
Commit
1ad9f62
1 Parent(s): b9eb248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -71,14 +71,15 @@ def respond(
71
  vqa=""
72
  if message["files"]:
73
  try:
74
- vqa = "[CAPTION of IMAGE] "
75
- image = message["files"][0]
76
- gr.Info("Analyzing image")
77
- vqa += generate_caption_instructblip(image, message["text"])
78
- print(vqa)
79
  except:
80
  vqa = ""
81
 
 
82
 
83
  functions_metadata = [
84
  {
 
71
  vqa=""
72
  if message["files"]:
73
  try:
74
+ for image in message["files"]:
75
+ vqa += "[CAPTION of IMAGE] "
76
+ gr.Info("Analyzing image")
77
+ vqa += generate_caption_instructblip(image, message["text"])
78
+ print(vqa)
79
  except:
80
  vqa = ""
81
 
82
+
83
 
84
  functions_metadata = [
85
  {