Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,3 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
#
|
4 |
-
model_name = "allenai/scibert_scivocab_uncased"
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
6 |
-
model = AutoModel.from_pretrained(model_name, torch_dtype=torch.float32)
|
|
|
1 |
+
import torch
|
2 |
+
print(torch.__version__)
|
3 |
+
print(torch.cuda.is_available()) # Zeigt, ob eine GPU erkannt wird
|
|
|
|
|
|