MediPlusPlus commited on
Commit
6a68ea7
·
verified ·
1 Parent(s): 707861f

google/matcha-chartqa

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -170,8 +170,8 @@ def m6(que, image):
170
 
171
  # predictions = model3.generate(**inputs)
172
  # return processor3.decode(predictions[0], skip_special_tokens=True)
173
- processor3 = Pix2StructProcessor.from_pretrained('google/matcha-plotqa-v1')
174
- model3 = Pix2StructForConditionalGeneration.from_pretrained('google/matcha-plotqa-v1')
175
 
176
  inputs = processor3(images=image, text=que, return_tensors="pt")
177
  predictions = model3.generate(**inputs, max_new_tokens=512)
 
170
 
171
  # predictions = model3.generate(**inputs)
172
  # return processor3.decode(predictions[0], skip_special_tokens=True)
173
+ processor3 = Pix2StructProcessor.from_pretrained('google/matcha-chartqa')
174
+ model3 = Pix2StructForConditionalGeneration.from_pretrained('google/matcha-chartqa')
175
 
176
  inputs = processor3(images=image, text=que, return_tensors="pt")
177
  predictions = model3.generate(**inputs, max_new_tokens=512)