rphrp1985 commited on
Commit
5ff16e5
1 Parent(s): 828f33f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # requests.get("https://audiospace-1-u9912847.deta.app/sendcode")
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 = audio_space+code
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)