apjanco commited on
Commit
dfeaa3c
·
1 Parent(s): 9c6ee2e

fixes error

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -30,7 +30,6 @@ def array_to_image_path(image_array):
30
  return full_path
31
 
32
  models = {
33
-
34
  "nanonets/Nanonets-OCR-s": AutoModelForImageTextToText.from_pretrained(
35
  "nanonets/Nanonets-OCR-s", trust_remote_code=True, dtype="auto"
36
  ).cuda().eval()
@@ -75,10 +74,7 @@ def run_example(image, model_id= "nanonets/Nanonets-OCR-s", prompt= """Extract t
75
  }
76
  ]
77
 
78
- # Preparation for inference,
79
- "Qwen/Qwen3-VL-235B-A22B-Instruct": AutoProcessor.from_pretrained(
80
- "Qwen/Qwen3-VL-235B-A22B-Instruct", trust_remote_code=True
81
- )
82
  text = processor.apply_chat_template(
83
  messages, tokenize=False, add_generation_prompt=True
84
  )
 
30
  return full_path
31
 
32
  models = {
 
33
  "nanonets/Nanonets-OCR-s": AutoModelForImageTextToText.from_pretrained(
34
  "nanonets/Nanonets-OCR-s", trust_remote_code=True, dtype="auto"
35
  ).cuda().eval()
 
74
  }
75
  ]
76
 
77
+ # Preparation for inference
 
 
 
78
  text = processor.apply_chat_template(
79
  messages, tokenize=False, add_generation_prompt=True
80
  )