Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ processor = AutoProcessor.from_pretrained("microsoft/kosmos-2-patch14-224")
|
|
12 |
|
13 |
#prompt = "{question}"
|
14 |
|
15 |
-
|
16 |
inputs = processor(text=question, images=image_path, return_tensors="pt")
|
17 |
|
18 |
generated_ids = await model.generate(
|
|
|
12 |
|
13 |
#prompt = "{question}"
|
14 |
|
15 |
+
def describe_image(image_path, question : str):
|
16 |
inputs = processor(text=question, images=image_path, return_tensors="pt")
|
17 |
|
18 |
generated_ids = await model.generate(
|