Fiqa commited on
Commit
8bbdb99
·
verified ·
1 Parent(s): 5c7b182

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ pipe.to(device)
52
 
53
  @spaces.GPU(duration=150)
54
  def generate_caption_and_image(image, f, p, d):
55
- if f!=None and p!=None and d!=None:
56
  img = image.convert("RGB")
57
  # reader = easyocr.Reader(['en'])
58
  # # result = reader.readtext(img)
 
52
 
53
  @spaces.GPU(duration=150)
54
  def generate_caption_and_image(image, f, p, d):
55
+ if f!=None and p!=None and d!=None and image!=None:
56
  img = image.convert("RGB")
57
  # reader = easyocr.Reader(['en'])
58
  # # result = reader.readtext(img)