awacke1 commited on
Commit
c37b751
1 Parent(s): ee938cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -252,7 +252,7 @@ def transcribe_audio(openai_key, file_path, model):
252
  "Authorization": f"Bearer {openai_key}",
253
  }
254
  with open(file_path, 'rb') as f:
255
- data = {'file': f
256
  st.write('Transcribe Audio is Posting request to ' + OPENAI_API_URL)
257
  response = requests.post(OPENAI_API_URL, headers=headers, files=data, data={'model': model})
258
  if response.status_code == 200:
 
252
  "Authorization": f"Bearer {openai_key}",
253
  }
254
  with open(file_path, 'rb') as f:
255
+ data = {'file': f}
256
  st.write('Transcribe Audio is Posting request to ' + OPENAI_API_URL)
257
  response = requests.post(OPENAI_API_URL, headers=headers, files=data, data={'model': model})
258
  if response.status_code == 200: