Spaces:
Running
Running
Update audio_save.py
Browse files- audio_save.py +2 -1
audio_save.py
CHANGED
@@ -3,7 +3,8 @@ import shutil
|
|
3 |
import os
|
4 |
app = FastAPI()
|
5 |
|
6 |
-
os.
|
|
|
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(...)):
|