Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,8 @@ def compare_image_to_text_models(image, prompt, model1_choice, model1_custom, mo
|
|
46 |
pipe2 = pipeline("image-to-text", model=model2_name, device=device)
|
47 |
|
48 |
# Run inference on the image with the provided prompt.
|
49 |
-
output1 = pipe1(image, prompt)
|
50 |
-
output2 = pipe2(image, prompt)
|
51 |
|
52 |
# Extract the generated text.
|
53 |
def extract_text(output):
|
|
|
46 |
pipe2 = pipeline("image-to-text", model=model2_name, device=device)
|
47 |
|
48 |
# Run inference on the image with the provided prompt.
|
49 |
+
output1 = pipe1(image, query=prompt)
|
50 |
+
output2 = pipe2(image, query=prompt)
|
51 |
|
52 |
# Extract the generated text.
|
53 |
def extract_text(output):
|