Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -261,6 +261,7 @@ def is_example_image(image, examples):
|
|
261 |
return False, None
|
262 |
|
263 |
# Main processing function
|
|
|
264 |
def process_image(image, question, confidence_threshold, examples=None):
|
265 |
if image is None:
|
266 |
return None, "Please upload an image", []
|
|
|
261 |
return False, None
|
262 |
|
263 |
# Main processing function
|
264 |
+
@spaces.GPU
|
265 |
def process_image(image, question, confidence_threshold, examples=None):
|
266 |
if image is None:
|
267 |
return None, "Please upload an image", []
|