Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|