mynkchaudhry commited on
Commit
df00160
1 Parent(s): e25c164

upload all the files

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ from PIL import Image
4
  import torch
5
 
6
  # Load model and processor with trust_remote_code=True
7
- model = AutoModelForCausalLM.from_pretrained("mynkchaudhry/Florence-2-FT-DocVQA", force_download=True, trust_remote_code=True)
8
- processor = AutoProcessor.from_pretrained("mynkchaudhry/Florence-2-FT-DocVQA", force_download=True, trust_remote_code=True)
9
 
10
  def generate_response(image, question):
11
  try:
 
4
  import torch
5
 
6
  # Load model and processor with trust_remote_code=True
7
+ model = AutoModelForCausalLM.from_pretrained("mynkchaudhry/Florence-2-FT-DocVQA", trust_remote_code=True)
8
+ processor = AutoProcessor.from_pretrained("mynkchaudhry/Florence-2-FT-DocVQA", trust_remote_code=True)
9
 
10
  def generate_response(image, question):
11
  try: