Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -432,9 +432,12 @@ def whisper_main():
|
|
432 |
if filename is not None:
|
433 |
transcription = transcribe_audio(filename)
|
434 |
st.write(transcription)
|
435 |
-
response = StreamLLMChatResponse(transcription)
|
|
|
|
|
436 |
filename = generate_filename(str(response), ".txt")
|
437 |
-
|
|
|
438 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
439 |
|
440 |
def main():
|
|
|
432 |
if filename is not None:
|
433 |
transcription = transcribe_audio(filename)
|
434 |
st.write(transcription)
|
435 |
+
response = StreamLLMChatResponse(transcription)
|
436 |
+
responseJSON = response.JSON
|
437 |
+
st.write(responseJSON)
|
438 |
filename = generate_filename(str(response), ".txt")
|
439 |
+
st.write(filename)
|
440 |
+
create_file(filename, transcription, str(response), should_save)
|
441 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
442 |
|
443 |
def main():
|