Spaces:
Runtime error
Runtime error
Update to medium-sized model
Browse files
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-
|
13 |
-
model = ImageGPTForCausalLM.from_pretrained("openai/imagegpt-
|
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 |
|