Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,14 +2,14 @@ import spaces
|
|
2 |
import os
|
3 |
import time
|
4 |
import torch
|
5 |
-
from transformers import AutoProcessor,
|
6 |
import gradio as gr
|
7 |
from threading import Thread
|
8 |
from PIL import Image
|
9 |
|
10 |
# Model and processor initialization
|
11 |
processor = AutoProcessor.from_pretrained("Qwen/QVQ-72B-Preview")
|
12 |
-
model =
|
13 |
|
14 |
# Footer
|
15 |
footer = """
|
|
|
2 |
import os
|
3 |
import time
|
4 |
import torch
|
5 |
+
from transformers import AutoProcessor, AutoModelForVision2Seq
|
6 |
import gradio as gr
|
7 |
from threading import Thread
|
8 |
from PIL import Image
|
9 |
|
10 |
# Model and processor initialization
|
11 |
processor = AutoProcessor.from_pretrained("Qwen/QVQ-72B-Preview")
|
12 |
+
model = AutoModelForVision2Seq.from_pretrained("Qwen/QVQ-72B-Preview").cuda().eval()
|
13 |
|
14 |
# Footer
|
15 |
footer = """
|