Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files
app.py
CHANGED
|
@@ -10,8 +10,10 @@ def current_time():
|
|
| 10 |
|
| 11 |
print(f"[{current_time()}] 开始部署空间...")
|
| 12 |
|
|
|
|
| 13 |
print(f"[{current_time()}] 日志:安装 - 必要包")
|
| 14 |
os.system("pip install -r ./requirements.txt")
|
|
|
|
| 15 |
print(f"[{current_time()}] 日志:安装 - gsutil")
|
| 16 |
os.system("pip install gsutil")
|
| 17 |
print(f"[{current_time()}] 日志:Git - 克隆 Github 的 T5X 训练框架到当前目录")
|
|
@@ -24,7 +26,12 @@ print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内
|
|
| 24 |
os.system("python3 -m pip install -e .")
|
| 25 |
print(f"[{current_time()}] 日志:Python - 更新 Python 包管理器 pip")
|
| 26 |
os.system("python3 -m pip install --upgrade pip")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
|
|
|
| 28 |
# 安装 airio
|
| 29 |
print(f"[{current_time()}] 日志:Git - 克隆 Github 的 airio 到当前目录")
|
| 30 |
os.system("git clone --branch=main https://github.com/google/airio")
|
|
@@ -32,12 +39,15 @@ print(f"[{current_time()}] 日志:文件 - 移动 airio 到当前目录并重
|
|
| 32 |
os.system("mv airio airio_tmp; mv airio_tmp/* .; rm -r airio_tmp")
|
| 33 |
print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内的 Python 包")
|
| 34 |
os.system("python3 -m pip install -e .")
|
|
|
|
| 35 |
|
| 36 |
# 安装 mt3
|
| 37 |
print(f"[{current_time()}] 日志:Git - 克隆 Github 的 MT3 模型到当前目录")
|
| 38 |
os.system("git clone --branch=main https://github.com/magenta/mt3")
|
| 39 |
print(f"[{current_time()}] 日志:文件 - 移动 mt3 到当前目录并重命名为 mt3_tmp 并删除")
|
| 40 |
os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
|
|
|
|
|
|
|
| 41 |
print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内的 Python 包")
|
| 42 |
os.system("python3 -m pip install -e .")
|
| 43 |
print(f"[{current_time()}] 日志:安装 - TensorFlow CPU")
|
|
|
|
| 10 |
|
| 11 |
print(f"[{current_time()}] 开始部署空间...")
|
| 12 |
|
| 13 |
+
"""
|
| 14 |
print(f"[{current_time()}] 日志:安装 - 必要包")
|
| 15 |
os.system("pip install -r ./requirements.txt")
|
| 16 |
+
"""
|
| 17 |
print(f"[{current_time()}] 日志:安装 - gsutil")
|
| 18 |
os.system("pip install gsutil")
|
| 19 |
print(f"[{current_time()}] 日志:Git - 克隆 Github 的 T5X 训练框架到当前目录")
|
|
|
|
| 26 |
os.system("python3 -m pip install -e .")
|
| 27 |
print(f"[{current_time()}] 日志:Python - 更新 Python 包管理器 pip")
|
| 28 |
os.system("python3 -m pip install --upgrade pip")
|
| 29 |
+
print(f"[{current_time()}] 日志:安装 - langchain")
|
| 30 |
+
os.system("pip install langchain")
|
| 31 |
+
print(f"[{current_time()}] 日志:安装 - sentence-transformers")
|
| 32 |
+
os.system("pip install sentence-transformers")
|
| 33 |
|
| 34 |
+
"""
|
| 35 |
# 安装 airio
|
| 36 |
print(f"[{current_time()}] 日志:Git - 克隆 Github 的 airio 到当前目录")
|
| 37 |
os.system("git clone --branch=main https://github.com/google/airio")
|
|
|
|
| 39 |
os.system("mv airio airio_tmp; mv airio_tmp/* .; rm -r airio_tmp")
|
| 40 |
print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内的 Python 包")
|
| 41 |
os.system("python3 -m pip install -e .")
|
| 42 |
+
"""
|
| 43 |
|
| 44 |
# 安装 mt3
|
| 45 |
print(f"[{current_time()}] 日志:Git - 克隆 Github 的 MT3 模型到当前目录")
|
| 46 |
os.system("git clone --branch=main https://github.com/magenta/mt3")
|
| 47 |
print(f"[{current_time()}] 日志:文件 - 移动 mt3 到当前目录并重命名为 mt3_tmp 并删除")
|
| 48 |
os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
|
| 49 |
+
print(f"[{current_time()}] 日志:Python - 使用 pip 从 storage.googleapis.com 安装 jax[cuda11_local] nest-asyncio pyfluidsynth")
|
| 50 |
+
os.system("python3 -m pip install jax[cuda11_local] nest-asyncio pyfluidsynth==1.3.0 -e . -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html")
|
| 51 |
print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内的 Python 包")
|
| 52 |
os.system("python3 -m pip install -e .")
|
| 53 |
print(f"[{current_time()}] 日志:安装 - TensorFlow CPU")
|