Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import importlib
|
| 3 |
+
|
| 4 |
+
print("Python version:", sys.version)
|
| 5 |
+
for pkg in ["TTS", "datasets", "huggingface_hub", "soundfile", "librosa"]:
|
| 6 |
+
try:
|
| 7 |
+
mod = importlib.import_module(pkg)
|
| 8 |
+
print(f"{pkg} version:", getattr(mod, "__version__", "unknown"))
|
| 9 |
+
except ImportError:
|
| 10 |
+
print(f"{pkg} not installed")
|
| 11 |
+
|
| 12 |
+
print("All good, Python 3.11 is working in Docker Space.")
|