Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,6 @@ florence_processor = AutoProcessor.from_pretrained('microsoft/Florence-2-base',
|
|
18 |
|
19 |
# api_key = os.getenv("HF_READ_TOKEN")
|
20 |
|
21 |
-
|
22 |
def generate_caption(image):
|
23 |
if not isinstance(image, Image.Image):
|
24 |
image = Image.fromarray(image)
|
|
|
18 |
|
19 |
# api_key = os.getenv("HF_READ_TOKEN")
|
20 |
|
|
|
21 |
def generate_caption(image):
|
22 |
if not isinstance(image, Image.Image):
|
23 |
image = Image.fromarray(image)
|