Spaces:
Running
Running
2410191352
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ async def sb3(req_data: TextRequest):
|
|
109 |
zip_file.writestr('project.json', json.dumps(project).encode('utf-8'))
|
110 |
|
111 |
# mmp4.zipの他のファイルもコピー
|
112 |
-
with zipfile.ZipFile('mmp4.zip', 'r') as template_zip:
|
113 |
for item in template_zip.infolist():
|
114 |
if item.filename != 'project.json':
|
115 |
zip_file.writestr(item.filename, template_zip.read(item.filename))
|
|
|
109 |
zip_file.writestr('project.json', json.dumps(project).encode('utf-8'))
|
110 |
|
111 |
# mmp4.zipの他のファイルもコピー
|
112 |
+
with zipfile.ZipFile(Path('public').joinpath('mmp4.zip').resolve(), 'r') as template_zip:
|
113 |
for item in template_zip.infolist():
|
114 |
if item.filename != 'project.json':
|
115 |
zip_file.writestr(item.filename, template_zip.read(item.filename))
|