Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ from PIL import Image
|
|
| 5 |
|
| 6 |
# Load model and processor
|
| 7 |
pipe = pipeline("image-to-text", model="google/pix2struct-screen2words-large")
|
| 8 |
-
pipe.to('cuda')
|
| 9 |
# Define the function
|
| 10 |
@spaces.GPU
|
| 11 |
def describe_ui(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):
|