Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ from PIL import Image as PILImage
|
|
19 |
|
20 |
image_dir = "saved_images"
|
21 |
os.makedirs(image_dir, exist_ok=True)
|
22 |
-
base_url = "https://huggingface.co/spaces/Tonic1/Official-Qwen-VL-Chat"
|
23 |
model_name = "Qwen/Qwen-VL-Chat"
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
25 |
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", bf16=True, trust_remote_code=True).eval()
|
|
|
19 |
|
20 |
image_dir = "saved_images"
|
21 |
os.makedirs(image_dir, exist_ok=True)
|
22 |
+
base_url = "https://huggingface.co/spaces/Tonic1/Official-Qwen-VL-Chat/blob/main/"
|
23 |
model_name = "Qwen/Qwen-VL-Chat"
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
25 |
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", bf16=True, trust_remote_code=True).eval()
|