sflindrs commited on
Commit
8cfaee2
·
verified ·
1 Parent(s): 6133d17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):