Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ processor = AutoProcessor.from_pretrained("microsoft/kosmos-2-patch14-224")
|
|
| 9 |
|
| 10 |
# The original Kosmos-2 demo saves the image first then reload it. For some images, this will give slightly different image input and change the generation outputs.
|
| 11 |
|
| 12 |
-
prompt = "
|
| 13 |
|
| 14 |
def describe_image(image_path):
|
| 15 |
inputs = processor(text=prompt, images=image_path, return_tensors="pt")
|
|
|
|
| 9 |
|
| 10 |
# The original Kosmos-2 demo saves the image first then reload it. For some images, this will give slightly different image input and change the generation outputs.
|
| 11 |
|
| 12 |
+
prompt = ""
|
| 13 |
|
| 14 |
def describe_image(image_path):
|
| 15 |
inputs = processor(text=prompt, images=image_path, return_tensors="pt")
|