Spaces:
Running
Running
Update appImage.py
Browse files- appImage.py +2 -2
appImage.py
CHANGED
@@ -21,7 +21,7 @@ except Exception as e:
|
|
21 |
USE_GIT = False
|
22 |
|
23 |
def generate_caption(image_path):
|
24 |
-
"Generate caption using the best available model""
|
25 |
try:
|
26 |
if USE_GIT:
|
27 |
image = Image.open(image_path)
|
@@ -36,7 +36,7 @@ def generate_caption(image_path):
|
|
36 |
return "Could not generate caption"
|
37 |
|
38 |
def process_image(file_path: str):
|
39 |
-
"Handle image processing for Gradio interface"
|
40 |
if not file_path:
|
41 |
return "Please upload an image first"
|
42 |
|
|
|
21 |
USE_GIT = False
|
22 |
|
23 |
def generate_caption(image_path):
|
24 |
+
"""Generate caption using the best available model"""
|
25 |
try:
|
26 |
if USE_GIT:
|
27 |
image = Image.open(image_path)
|
|
|
36 |
return "Could not generate caption"
|
37 |
|
38 |
def process_image(file_path: str):
|
39 |
+
"""Handle image processing for Gradio interface"""
|
40 |
if not file_path:
|
41 |
return "Please upload an image first"
|
42 |
|