EfektMotyla commited on
Commit
e34ebb0
Β·
verified Β·
1 Parent(s): 9d9d143

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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"