aiqtech commited on
Commit
80845a6
·
verified ·
1 Parent(s): 723de5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,14 +2,14 @@ import spaces
2
  import os
3
  import time
4
  import torch
5
- from transformers import AutoProcessor, AutoModelForImageTextToText
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 = AutoModelForImageTextToText.from_pretrained("Qwen/QVQ-72B-Preview").cuda().eval()
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 = """