Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files9 unmodified lines10111213141516176 unmodified lines242526272829301 unmodified line3233343536373839404142439 unmodified linesprint(f"[{current_time()}] 开始部署空间...")print(f"[{current_time()}] 日志:安装 - 必要包")os.system("pip install -r ./requirements.txt")print(f"[{current_time()}] 日志:安装 - gsutil")os.system("pip install gsutil")print(f"[{current_time()}] 日志:Git - 克隆 Github 的 T5X 训练框架到当前目录")6 unmodified linesos.system("python3 -m pip install -e .")print(f"[{current_time()}] 日志:Python - 更新 Python 包管理器 pip")os.system("python3 -m pip install --upgrade pip")# 安装 airioprint(f"[{current_time()}] 日志:Git - 克隆 Github 的 airio 到当前目录")os.system("git clone --branch=main https://github.com/google/airio")1 unmodified lineos.system("mv airio airio_tmp; mv airio_tmp/* .; rm -r airio_tmp")print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内的 Python 包")os.system("python3 -m pip install -e .")# 安装 mt3print(f"[{current_time()}] 日志:Git - 克隆 Github 的 MT3 模型到当前目录")os.system("git clone --branch=main https://github.com/magenta/mt3")print(f"[{current_time()}] 日志:文件 - 移动 mt3 到当前目录并重命名为 mt3_tmp 并删除")os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内的 Python 包")os.system("python3 -m pip install -e .")print(f"[{current_time()}] 日志:安装 - TensorFlow CPU")9 unmodified lines101112131415161718196 unmodified lines2627282930313233343536371 unmodified line3940414243444546474849505152539 unmodified linesprint(f"[{current_time()}] 开始部署空间...")"""print(f"[{current_time()}] 日志:安装 - 必要包")os.system("pip install -r ./requirements.txt")"""print(f"[{current_time()}] 日志:安装 - gsutil")os.system("pip install gsutil")print(f"[{current_time()}] 日志:Git - 克隆 Github 的 T5X 训练框架到当前目录")6 unmodified linesos.system("python3 -m pip install -e .")print(f"[{current_time()}] 日志:Python - 更新 Python 包管理器 pip")os.system("python3 -m pip install --upgrade pip")print(f"[{current_time()}] 日志:安装 - langchain")os.system("pip install langchain")print(f"[{current_time()}] 日志:安装 - sentence-transformers")os.system("pip install sentence-transformers")"""# 安装 airioprint(f"[{current_time()}] 日志:Git - 克隆 Github 的 airio 到当前目录")os.system("git clone --branch=main https://github.com/google/airio")1 unmodified lineos.system("mv airio airio_tmp; mv airio_tmp/* .; rm -r airio_tmp")print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内的 Python 包")os.system("python3 -m pip install -e .")"""# 安装 mt3print(f"[{current_time()}] 日志:Git - 克隆 Github 的 MT3 模型到当前目录")os.system("git clone --branch=main https://github.com/magenta/mt3")print(f"[{current_time()}] 日志:文件 - 移动 mt3 到当前目录并重命名为 mt3_tmp 并删除")os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")print(f"[{current_time()}] 日志:Python - 使用 pip 从 storage.googleapis.com 安装 jax[cuda11_local] nest-asyncio pyfluidsynth")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")print(f"[{current_time()}] 日志:Python - 使用 pip 安装 当前目录内的 Python 包")os.system("python3 -m pip install -e .")print(f"[{current_time()}] 日志:安装 - TensorFlow CPU")
app.py+10