Spaces:
Paused
Paused
Update app.py
Browse filestrust_remote_code=True
app.py
CHANGED
@@ -14,7 +14,7 @@ def get_model_summary(model_name):
|
|
14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
15 |
|
16 |
# Load the model and move it to the selected device
|
17 |
-
model = AutoModel.from_pretrained(model_name).to(device)
|
18 |
|
19 |
# Return the model's architecture as a string
|
20 |
return str(model)
|
|
|
14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
15 |
|
16 |
# Load the model and move it to the selected device
|
17 |
+
model = AutoModel.from_pretrained(model_name, trust_remote_code=True).to(device)
|
18 |
|
19 |
# Return the model's architecture as a string
|
20 |
return str(model)
|