Update app.py
Browse files
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)
|