Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ for ai_role_en in NAME_DICT.values():
|
|
37 |
if f"{ai_role_en}.zip" not in os.listdir(f"characters_zip"):
|
38 |
destination_file = f"characters_zip/{ai_role_en}.zip"
|
39 |
response = requests.get(url)
|
40 |
-
if response.status_code
|
41 |
with open(destination_file, "wb") as file:
|
42 |
file.write(response.content)
|
43 |
else:
|
|
|
37 |
if f"{ai_role_en}.zip" not in os.listdir(f"characters_zip"):
|
38 |
destination_file = f"characters_zip/{ai_role_en}.zip"
|
39 |
response = requests.get(url)
|
40 |
+
if response.status_code == 200:
|
41 |
with open(destination_file, "wb") as file:
|
42 |
file.write(response.content)
|
43 |
else:
|