theahmedjaafari
commited on
Commit
•
3fe4028
1
Parent(s):
745ebaa
initial commit
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def upload_audio(file_path, progress=gr.Progress()):
|
|
17 |
response = requests.post(url, headers=headers, files=files)
|
18 |
if response.status_code == 200:
|
19 |
progress(0.5, desc="Upload complete")
|
20 |
-
os.remove(
|
21 |
return response.json()
|
22 |
else:
|
23 |
print("Error:", response.status_code, response.text)
|
|
|
17 |
response = requests.post(url, headers=headers, files=files)
|
18 |
if response.status_code == 200:
|
19 |
progress(0.5, desc="Upload complete")
|
20 |
+
os.remove(file_path)
|
21 |
return response.json()
|
22 |
else:
|
23 |
print("Error:", response.status_code, response.text)
|