anand004 commited on
Commit
a4f5332
1 Parent(s): ded1f34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -103,6 +103,7 @@ def get_vectordb(text, images, img_doc_files):
103
  descs.append(img_doc_files[i]+"\n"+get_image_description(images[i]))
104
  except:
105
  descs.append("Could not generate image description due to some error")
 
106
  print(descs[-1])
107
  print()
108
 
 
103
  descs.append(img_doc_files[i]+"\n"+get_image_description(images[i]))
104
  except:
105
  descs.append("Could not generate image description due to some error")
106
+ gr.Error("Could not generate image descriptions. Your GPU limit may have been exhausted. Please try again after an hour.")
107
  print(descs[-1])
108
  print()
109