Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -147,7 +147,7 @@ def pad_image_to_multiple_of_16(image):
|
|
| 147 |
@spaces.GPU
|
| 148 |
def infer_radio(image):
|
| 149 |
"""Define the function to generate the output."""
|
| 150 |
-
model.
|
| 151 |
image=pad_image_to_multiple_of_16(image)
|
| 152 |
width, height = image.size
|
| 153 |
pixel_values = image_processor(images=image, return_tensors='pt').pixel_values
|
|
|
|
| 147 |
@spaces.GPU
|
| 148 |
def infer_radio(image):
|
| 149 |
"""Define the function to generate the output."""
|
| 150 |
+
model.cuda()
|
| 151 |
image=pad_image_to_multiple_of_16(image)
|
| 152 |
width, height = image.size
|
| 153 |
pixel_values = image_processor(images=image, return_tensors='pt').pixel_values
|