Spaces:
Runtime error
Runtime error
prlabs2023
commited on
Commit
•
2d6a761
1
Parent(s):
d5bde3f
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ app.add_middleware(
|
|
81 |
@app.on_event("startup")
|
82 |
async def startup_event():
|
83 |
print("on startup")
|
84 |
-
|
85 |
|
86 |
audio_space="https://audiospace-1-u9912847.deta.app/upload"
|
87 |
|
@@ -164,8 +164,8 @@ def do_ML(filename:str,text:str,code:str):
|
|
164 |
|
165 |
files = {'file': wav_bytes}
|
166 |
|
167 |
-
global audio_space
|
168 |
-
url =
|
169 |
|
170 |
data = {"filename": filename}
|
171 |
response = requests.post(url, files=files,data= data)
|
|
|
81 |
@app.on_event("startup")
|
82 |
async def startup_event():
|
83 |
print("on startup")
|
84 |
+
|
85 |
|
86 |
audio_space="https://audiospace-1-u9912847.deta.app/upload"
|
87 |
|
|
|
164 |
|
165 |
files = {'file': wav_bytes}
|
166 |
|
167 |
+
# global audio_space
|
168 |
+
url = code
|
169 |
|
170 |
data = {"filename": filename}
|
171 |
response = requests.post(url, files=files,data= data)
|