AlexHung29629 commited on
Commit
c2763e8
·
verified ·
1 Parent(s): 0beadfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  from PIL import Image
5
 
6
  # Load model and processor
7
- pipe = pipeline("image-to-text", model="google/pix2struct-screen2words-large")
8
  # Define the function
9
  @spaces.GPU
10
  def describe_ui(image):
 
4
  from PIL import Image
5
 
6
  # Load model and processor
7
+ pipe = pipeline("image-text-to-text", model="google/pix2struct-screen2words-large")
8
  # Define the function
9
  @spaces.GPU
10
  def describe_ui(image):