Spaces:
Paused
Paused
removing zerogpu
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
import spaces
|
3 |
from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
|
4 |
from qwen_vl_utils import process_vision_info
|
5 |
import torch
|
@@ -50,7 +50,7 @@ user_prompt = '<|user|>\n'
|
|
50 |
assistant_prompt = '<|assistant|>\n'
|
51 |
prompt_suffix = "<|end|>\n"
|
52 |
|
53 |
-
@spaces.GPU
|
54 |
def run_example(image, text_input=None, model_id="Qwen/Qwen2-VL-2B-Instruct"):
|
55 |
image_path = array_to_image_path(image)
|
56 |
|
|
|
1 |
import gradio as gr
|
2 |
+
# import spaces
|
3 |
from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
|
4 |
from qwen_vl_utils import process_vision_info
|
5 |
import torch
|
|
|
50 |
assistant_prompt = '<|assistant|>\n'
|
51 |
prompt_suffix = "<|end|>\n"
|
52 |
|
53 |
+
# @spaces.GPU
|
54 |
def run_example(image, text_input=None, model_id="Qwen/Qwen2-VL-2B-Instruct"):
|
55 |
image_path = array_to_image_path(image)
|
56 |
|