Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,13 @@ from transformers import (
|
|
| 11 |
AutoModelForSequenceClassification,
|
| 12 |
pipeline,
|
| 13 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# ββββββββββββββββββββββ konfiguracja ββββββββββββββββββββββ
|
| 16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 11 |
AutoModelForSequenceClassification,
|
| 12 |
pipeline,
|
| 13 |
)
|
| 14 |
+
import os
|
| 15 |
+
|
| 16 |
+
print("π ZAWARTOΕΔ /app/models/bert-aspect-ner:")
|
| 17 |
+
print(os.listdir("/app/models/bert-aspect-ner") if os.path.exists("/app/models/bert-aspect-ner") else "β NIE ISTNIEJE")
|
| 18 |
+
|
| 19 |
+
print("π ZAWARTOΕΔ /app/models/absa-roberta:")
|
| 20 |
+
print(os.listdir("/app/models/absa-roberta") if os.path.exists("/app/models/absa-roberta") else "β NIE ISTNIEJE")
|
| 21 |
|
| 22 |
# ββββββββββββββββββββββ konfiguracja ββββββββββββββββββββββ
|
| 23 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|