Update ff.py
Browse files
ff.py
CHANGED
|
@@ -189,8 +189,11 @@ def create_space(type,key = "", value = ""):
|
|
| 189 |
with open(file_path, "wb") as f:
|
| 190 |
f.write(response.content)
|
| 191 |
print("下载完成 ✅")
|
|
|
|
| 192 |
else:
|
| 193 |
print(f"下载失败,状态码: {response.status_code}")
|
|
|
|
|
|
|
| 194 |
# os.system(f"wget -O '/data/{tmp_name}/Dockerfile' https://huggingface.co/datasets/Qilan2/ff/raw/main/Dockerfile")
|
| 195 |
os.system('git add .')
|
| 196 |
os.system('git commit -m "0"')
|
|
|
|
| 189 |
with open(file_path, "wb") as f:
|
| 190 |
f.write(response.content)
|
| 191 |
print("下载完成 ✅")
|
| 192 |
+
telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID}下载Dockerfile 结果:下载完成 ✅"")
|
| 193 |
else:
|
| 194 |
print(f"下载失败,状态码: {response.status_code}")
|
| 195 |
+
telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID}下载Dockerfile下载失败,状态码: {response.status_code}")
|
| 196 |
+
|
| 197 |
# os.system(f"wget -O '/data/{tmp_name}/Dockerfile' https://huggingface.co/datasets/Qilan2/ff/raw/main/Dockerfile")
|
| 198 |
os.system('git add .')
|
| 199 |
os.system('git commit -m "0"')
|