Spaces:
Running
Running
Update audio_save.py
Browse files- audio_save.py +3 -3
audio_save.py
CHANGED
@@ -9,10 +9,10 @@ if not os.path.exists('./tarun_1234'):
|
|
9 |
@app.post("/save_audio")
|
10 |
async def save_audio(audio: UploadFile = File(...), path: str = Form(...)):
|
11 |
|
12 |
-
print('PATH ************************ >>>>>', path)
|
13 |
-
folder_path = path.split('/')[
|
14 |
|
15 |
-
print('FOLDER PATH ----------->>>>>>>>>>>>>>', folder_path)
|
16 |
|
17 |
if not os.path.exists(folder_path):
|
18 |
os.mkdir(folder_path)
|
|
|
9 |
@app.post("/save_audio")
|
10 |
async def save_audio(audio: UploadFile = File(...), path: str = Form(...)):
|
11 |
|
12 |
+
# print('PATH ************************ >>>>>', path)
|
13 |
+
folder_path = path.split('/')[1]
|
14 |
|
15 |
+
# print('FOLDER PATH ----------->>>>>>>>>>>>>>', folder_path)
|
16 |
|
17 |
if not os.path.exists(folder_path):
|
18 |
os.mkdir(folder_path)
|