tttarun commited on
Commit
bcdc9c1
1 Parent(s): 88c274c

Update audio_save.py

Browse files
Files changed (1) hide show
  1. audio_save.py +4 -0
audio_save.py CHANGED
@@ -8,6 +8,10 @@ if not os.path.exists('./tarun_1234'):
8
 
9
  @app.post("/save_audio")
10
  async def save_audio(audio: UploadFile = File(...), path: str = Form(...)):
 
 
 
 
11
 
12
  print("Received Audio !!!!!")
13
 
 
8
 
9
  @app.post("/save_audio")
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
 
16
  print("Received Audio !!!!!")
17