Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -240,6 +240,7 @@ def main():
|
|
240 |
if filename is not None:
|
241 |
transcription = transcribe_audio(openai.api_key, filename, "whisper-1")
|
242 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
|
|
243 |
|
244 |
# prompt interfaces
|
245 |
user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
|
|
|
240 |
if filename is not None:
|
241 |
transcription = transcribe_audio(openai.api_key, filename, "whisper-1")
|
242 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
243 |
+
filename=None # since transcription is finished next time just use the saved transcript
|
244 |
|
245 |
# prompt interfaces
|
246 |
user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
|