chenxiYan commited on
Commit
a196912
1 Parent(s): 1744914

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -29,7 +29,10 @@ except:
29
  AI_ROLES_OBJ = {}
30
  for ai_role_en in NAME_DICT.values():
31
  file_url = f"https://github.com/LC1332/Haruhi-2-Dev/raw/main/data/character_in_zip/{ai_role_en}.zip"
32
- os.makedirs(f"characters/{ai_role_en}")
 
 
 
33
  destination_file = f"characters_zip/{ai_role_en}.zip"
34
  wget.download(file_url, destination_file)
35
  destination_folder = f"characters/{ai_role_en}"
 
29
  AI_ROLES_OBJ = {}
30
  for ai_role_en in NAME_DICT.values():
31
  file_url = f"https://github.com/LC1332/Haruhi-2-Dev/raw/main/data/character_in_zip/{ai_role_en}.zip"
32
+ try:
33
+ os.makedirs(f"characters/{ai_role_en}")
34
+ except:
35
+ pass
36
  destination_file = f"characters_zip/{ai_role_en}.zip"
37
  wget.download(file_url, destination_file)
38
  destination_folder = f"characters/{ai_role_en}"