sflindrs commited on
Commit
084f1ce
·
verified ·
1 Parent(s): 8cfaee2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,8 +42,8 @@ def compare_image_to_text_models(image, prompt, model1_choice, model1_custom, mo
42
 
43
  # Create pipelines for image-to-text.
44
  # These models should support a call signature of (image, prompt)
45
- pipe1 = pipeline("image-to-text", model=model1_name, device=device)
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)
 
42
 
43
  # Create pipelines for image-to-text.
44
  # These models should support a call signature of (image, prompt)
45
+ pipe1 = pipeline(task="image-text-to-text", model=model1_name, device=device)
46
+ pipe2 = pipeline(task="image-text-to-text", model=model2_name, device=device)
47
 
48
  # Run inference on the image with the provided prompt.
49
  output1 = pipe1(image, query=prompt)