CR7CAD commited on
Commit
b6d09c3
·
verified ·
1 Parent(s): 90a9cd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ from pdf2image import convert_from_bytes
13
  # Load the OCR Pipeline (Uses Torch)
14
  #####################################
15
  try:
16
- ocr_pipeline = pipeline("image-to-text", model="alibaba-damo/mgp-str-base")
17
  st.write("Model loaded successfully!")
18
  except Exception as e:
19
  st.error(f"Error loading model: {e}")
 
13
  # Load the OCR Pipeline (Uses Torch)
14
  #####################################
15
  try:
16
+ ocr_pipeline = pipeline("image-to-text", model="Ertugrul/Qwen2-VL-7B-Captioner-Relaxed")
17
  st.write("Model loaded successfully!")
18
  except Exception as e:
19
  st.error(f"Error loading model: {e}")