awacke1 commited on
Commit
d2ab2f6
1 Parent(s): 1dfcc51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- create_file(filename, transcription, response.json(), should_save)
 
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():