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