Spaces:
Sleeping
Sleeping
update spaces.gpu
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def fig_to_pil(fig):
|
|
36 |
buf.seek(0)
|
37 |
return Image.open(buf)
|
38 |
|
39 |
-
|
40 |
def run_example(task_prompt, image, text_input=None, model_id='microsoft/Florence-2-large'):
|
41 |
model = models[model_id]
|
42 |
processor = processors[model_id]
|
|
|
36 |
buf.seek(0)
|
37 |
return Image.open(buf)
|
38 |
|
39 |
+
@spaces.GPU
|
40 |
def run_example(task_prompt, image, text_input=None, model_id='microsoft/Florence-2-large'):
|
41 |
model = models[model_id]
|
42 |
processor = processors[model_id]
|