Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ user_prompt = '<|user|>\n'
|
|
| 52 |
assistant_prompt = '<|assistant|>\n'
|
| 53 |
prompt_suffix = "<|end|>\n"
|
| 54 |
|
| 55 |
-
|
| 56 |
def run_example(image, text_input=None, model_id="Qwen/Qwen2-VL-7B-Instruct"):
|
| 57 |
image_path = array_to_image_path(image)
|
| 58 |
|
|
|
|
| 52 |
assistant_prompt = '<|assistant|>\n'
|
| 53 |
prompt_suffix = "<|end|>\n"
|
| 54 |
|
| 55 |
+
@spaces.GPU
|
| 56 |
def run_example(image, text_input=None, model_id="Qwen/Qwen2-VL-7B-Instruct"):
|
| 57 |
image_path = array_to_image_path(image)
|
| 58 |
|