merve HF staff commited on
Commit
52ca21c
1 Parent(s): 32d3bb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ from nougat.dataset.rasterize import rasterize_paper
7
  from transformers import NougatProcessor, VisionEncoderDecoderModel
8
  import torch
9
 
10
- processor = NougatProcessor.from_pretrained("nielsr/nougat")
11
- model = VisionEncoderDecoderModel.from_pretrained("nielsr/nougat")
12
 
13
  device = "cuda" if torch.cuda.is_available() else "cpu"
14
  model.to(device)
 
7
  from transformers import NougatProcessor, VisionEncoderDecoderModel
8
  import torch
9
 
10
+ processor = NougatProcessor.from_pretrained("facebook/nougat-small")
11
+ model = VisionEncoderDecoderModel.from_pretrained("facebook/nougat-small")
12
 
13
  device = "cuda" if torch.cuda.is_available() else "cpu"
14
  model.to(device)