tttarun commited on
Commit
ae5b42b
1 Parent(s): 576bd27

Update audio_save.py

Browse files
Files changed (1) hide show
  1. audio_save.py +2 -1
audio_save.py CHANGED
@@ -3,7 +3,8 @@ import shutil
3
  import os
4
  app = FastAPI()
5
 
6
- os.mkdir('./tarun_1234')
 
7
 
8
  @app.post("/save_audio")
9
  async def save_audio(audio: UploadFile = File(...), path: str = Form(...)):
 
3
  import os
4
  app = FastAPI()
5
 
6
+ if os.path.exists('./tarun_1234'):
7
+ os.mkdir('./tarun_1234')
8
 
9
  @app.post("/save_audio")
10
  async def save_audio(audio: UploadFile = File(...), path: str = Form(...)):