|
"""
|
|
Simple test to check if packages are installed
|
|
"""
|
|
|
|
print("Testing package imports...")
|
|
|
|
try:
|
|
import torch
|
|
print("β
torch imported successfully")
|
|
print(f" torch version: {torch.__version__}")
|
|
except ImportError as e:
|
|
print(f"β torch import failed: {e}")
|
|
|
|
try:
|
|
import transformers
|
|
print("β
transformers imported successfully")
|
|
print(f" transformers version: {transformers.__version__}")
|
|
except ImportError as e:
|
|
print(f"β transformers import failed: {e}")
|
|
|
|
try:
|
|
from PIL import Image
|
|
print("β
PIL (Pillow) imported successfully")
|
|
except ImportError as e:
|
|
print(f"β PIL import failed: {e}")
|
|
|
|
try:
|
|
import requests
|
|
print("β
requests imported successfully")
|
|
except ImportError as e:
|
|
print(f"β requests import failed: {e}")
|
|
|
|
print("\nAll basic imports tested!")
|
|
print("If all packages are imported successfully, you can run the main scripts.")
|
|
|