nielsr HF staff commited on
Commit
7283bfa
1 Parent(s): 00b818c

Update to medium-sized model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ import requests
9
  from PIL import Image
10
  import matplotlib.pyplot as plt
11
 
12
- feature_extractor = ImageGPTFeatureExtractor.from_pretrained("openai/imagegpt-small")
13
- model = ImageGPTForCausalLM.from_pretrained("openai/imagegpt-small")
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  model.to(device)
16
 
 
9
  from PIL import Image
10
  import matplotlib.pyplot as plt
11
 
12
+ feature_extractor = ImageGPTFeatureExtractor.from_pretrained("openai/imagegpt-medium")
13
+ model = ImageGPTForCausalLM.from_pretrained("openai/imagegpt-medium")
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  model.to(device)
16