Yermek68 commited on
Commit
ca30968
Β·
verified Β·
1 Parent(s): c7c513b

Create test_env.py

Browse files
Files changed (1) hide show
  1. test_env.py +19 -0
test_env.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import importlib
2
+ import huggingface_hub
3
+
4
+ print("βœ… Test environment started.")
5
+ print(f"βœ… huggingface-hub version: {huggingface_hub.__version__}")
6
+
7
+ try:
8
+ transformers = importlib.import_module("transformers")
9
+ print(f"βœ… transformers version: {transformers.__version__}")
10
+ except Exception as e:
11
+ print("❌ transformers not loaded:", e)
12
+
13
+ try:
14
+ import torch
15
+ print(f"βœ… torch version: {torch.__version__}")
16
+ except Exception as e:
17
+ print("❌ torch not loaded:", e)
18
+
19
+ print("βœ… All environment checks passed successfully!")