Spaces:
Running
Running
2410191238
Browse files- .dockerignore +0 -1
- __pycache__/app.cpython-310.pyc +0 -0
- app.py +1 -1
- mmp4.zip → public/mmp4.zip +0 -0
.dockerignore
CHANGED
@@ -3,5 +3,4 @@
|
|
3 |
!/public/
|
4 |
|
5 |
!/requirements.txt
|
6 |
-
!/mmp4.zip
|
7 |
!/app.py
|
|
|
3 |
!/public/
|
4 |
|
5 |
!/requirements.txt
|
|
|
6 |
!/app.py
|
__pycache__/app.cpython-310.pyc
DELETED
Binary file (3.79 kB)
|
|
app.py
CHANGED
@@ -68,7 +68,7 @@ async def sb3(req_data: TextRequest):
|
|
68 |
if processing: return ''
|
69 |
processing = True
|
70 |
data = json.loads(req_data.text)
|
71 |
-
with zipfile.ZipFile(Path('
|
72 |
with template_zip.open('project.json') as f:
|
73 |
project = json.loads(f.read().decode('utf-8'))
|
74 |
|
|
|
68 |
if processing: return ''
|
69 |
processing = True
|
70 |
data = json.loads(req_data.text)
|
71 |
+
with zipfile.ZipFile(Path('public') / 'mmp4.zip', 'r') as template_zip:
|
72 |
with template_zip.open('project.json') as f:
|
73 |
project = json.loads(f.read().decode('utf-8'))
|
74 |
|
mmp4.zip → public/mmp4.zip
RENAMED
File without changes
|