Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def main():
|
|
| 36 |
if uploaded_file is not None and api_input is not None:
|
| 37 |
save_folder = 'docs/'
|
| 38 |
if not os.path.isdir(save_folder):
|
| 39 |
-
os.
|
| 40 |
save_path = Path(save_folder, uploaded_file.name)
|
| 41 |
print(save_path)
|
| 42 |
with open(save_path, mode='wb') as w:
|
|
|
|
| 36 |
if uploaded_file is not None and api_input is not None:
|
| 37 |
save_folder = 'docs/'
|
| 38 |
if not os.path.isdir(save_folder):
|
| 39 |
+
os.makedirs(save_folder)
|
| 40 |
save_path = Path(save_folder, uploaded_file.name)
|
| 41 |
print(save_path)
|
| 42 |
with open(save_path, mode='wb') as w:
|