ybelkada commited on
Commit
724af6f
1 Parent(s): f884dd7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -59,7 +59,7 @@ Once saved, you can push your converted model with the following snippet:
59
  from transformers import Pix2StructForConditionalGeneration, Pix2StructProcessor
60
 
61
  model = Pix2StructForConditionalGeneration.from_pretrained(PATH_TO_SAVE)
62
- processor = Pix2StructProcessor.from_pretrained(Pix2StructForConditionalGeneration)
63
 
64
  model.push_to_hub("USERNAME/MODEL_NAME")
65
  processor.push_to_hub("USERNAME/MODEL_NAME")
 
59
  from transformers import Pix2StructForConditionalGeneration, Pix2StructProcessor
60
 
61
  model = Pix2StructForConditionalGeneration.from_pretrained(PATH_TO_SAVE)
62
+ processor = Pix2StructProcessor.from_pretrained(PATH_TO_SAVE)
63
 
64
  model.push_to_hub("USERNAME/MODEL_NAME")
65
  processor.push_to_hub("USERNAME/MODEL_NAME")