Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,10 +3,7 @@ from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
|
|
| 3 |
from qwen_vl_utils import process_vision_info
|
| 4 |
import torch
|
| 5 |
from PIL import Image
|
| 6 |
-
import warnings
|
| 7 |
|
| 8 |
-
# Suppress specific warnings
|
| 9 |
-
warnings.filterwarnings("ignore", category=UserWarning, message="Unrecognized keys in `rope_scaling`.*")
|
| 10 |
|
| 11 |
|
| 12 |
# Load model on CPU
|
|
|
|
| 3 |
from qwen_vl_utils import process_vision_info
|
| 4 |
import torch
|
| 5 |
from PIL import Image
|
|
|
|
| 6 |
|
|
|
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
# Load model on CPU
|