Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,12 +47,9 @@ def transcribe_audio(openai_key, file_path, model):
|
|
47 |
response = requests.post(OPENAI_API_URL, headers=headers, files=data, data={'model': model})
|
48 |
if response.status_code == 200:
|
49 |
st.write(response.json())
|
50 |
-
#if st.button('💬 Chat'):
|
51 |
-
#st.write('Reasoning with your inputs...')
|
52 |
-
#response = chat_with_model(response.json().get('text'), ''.join(list(document_sections)))
|
53 |
response2 = chat_with_model(response.json().get('text'), '')
|
54 |
st.write('Responses:')
|
55 |
-
st.write(response)
|
56 |
st.write(response2)
|
57 |
return response.json().get('text')
|
58 |
else:
|
|
|
47 |
response = requests.post(OPENAI_API_URL, headers=headers, files=data, data={'model': model})
|
48 |
if response.status_code == 200:
|
49 |
st.write(response.json())
|
|
|
|
|
|
|
50 |
response2 = chat_with_model(response.json().get('text'), '')
|
51 |
st.write('Responses:')
|
52 |
+
#st.write(response)
|
53 |
st.write(response2)
|
54 |
return response.json().get('text')
|
55 |
else:
|