Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -192,7 +192,8 @@ def query_image_caption(image):
|
|
| 192 |
|
| 193 |
# Use the InferenceClient's image_to_text method
|
| 194 |
response = client.image_to_text(
|
| 195 |
-
model="Salesforce/blip-image-captioning-large",
|
|
|
|
| 196 |
image=image_bytes,
|
| 197 |
)
|
| 198 |
return response
|
|
|
|
| 192 |
|
| 193 |
# Use the InferenceClient's image_to_text method
|
| 194 |
response = client.image_to_text(
|
| 195 |
+
# model="Salesforce/blip-image-captioning-large",
|
| 196 |
+
model="microsoft/Florence-2-base-ft,"
|
| 197 |
image=image_bytes,
|
| 198 |
)
|
| 199 |
return response
|