Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ if raw_image != 'Select image':
|
|
34 |
with st.spinner('Loading Model...'):
|
35 |
feature_extractor = DPTFeatureExtractor.from_pretrained("Intel/dpt-large-ade")
|
36 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
37 |
-
model = DPTForSemanticSegmentation.from_pretrained("Intel/dpt-large-ade"
|
38 |
model = model.to(device)
|
39 |
model.eval()
|
40 |
|
|
|
34 |
with st.spinner('Loading Model...'):
|
35 |
feature_extractor = DPTFeatureExtractor.from_pretrained("Intel/dpt-large-ade")
|
36 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
37 |
+
model = DPTForSemanticSegmentation.from_pretrained("Intel/dpt-large-ade")
|
38 |
model = model.to(device)
|
39 |
model.eval()
|
40 |
|