Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ download_url="https://img.zcool.cn/community/0104c15cd45b49a80121416816f1ec.jpg@
|
|
| 15 |
def download_file(download_url):
|
| 16 |
download_url="https://img.zcool.cn/community/0104c15cd45b49a80121416816f1ec.jpg@1280w_1l_2o_100sh.jpg"
|
| 17 |
try:
|
|
|
|
| 18 |
response = requests.get("https://img.zcool.cn/community/0104c15cd45b49a80121416816f1ec.jpg@1280w_1l_2o_100sh.jpg")
|
| 19 |
file_name = download_url.split("/")[-1] # Extracting the file name from the URL
|
| 20 |
save_path = os.path.join(os.getcwd(), file_name)
|
|
|
|
| 15 |
def download_file(download_url):
|
| 16 |
download_url="https://img.zcool.cn/community/0104c15cd45b49a80121416816f1ec.jpg@1280w_1l_2o_100sh.jpg"
|
| 17 |
try:
|
| 18 |
+
download_url="https://img.zcool.cn/community/0104c15cd45b49a80121416816f1ec.jpg@1280w_1l_2o_100sh.jpg"
|
| 19 |
response = requests.get("https://img.zcool.cn/community/0104c15cd45b49a80121416816f1ec.jpg@1280w_1l_2o_100sh.jpg")
|
| 20 |
file_name = download_url.split("/")[-1] # Extracting the file name from the URL
|
| 21 |
save_path = os.path.join(os.getcwd(), file_name)
|