Spaces:
Running
Running
Switch to CPU execution
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import gradio as gr
|
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
# Hugging Face 模型仓库路径
|
| 8 |
-
model_path = "hiko1999/Qwen2-Wildfire-
|
| 9 |
|
| 10 |
# 加载 Hugging Face 上的模型和 processor
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
|
|
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
# Hugging Face 模型仓库路径
|
| 8 |
+
model_path = "hiko1999/Qwen2-Wildfire-2B" # 替换为你的模型路径
|
| 9 |
|
| 10 |
# 加载 Hugging Face 上的模型和 processor
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|