awacke1 commited on
Commit
453908a
1 Parent(s): ce2a709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import base64
3
  import glob
4
  import json
5
  import math
6
- import mistune
7
  import openai
8
  import os
9
  import pytz
@@ -13,6 +13,8 @@ import streamlit as st
13
  import textract
14
  import time
15
  import zipfile
 
 
16
  from audio_recorder_streamlit import audio_recorder
17
  from bs4 import BeautifulSoup
18
  from collections import deque
@@ -436,7 +438,7 @@ def whisper_main():
436
  if filename is not None:
437
  transcription = transcribe_audio(filename)
438
  st.write(transcription)
439
- response = StreamLLMChatResponse(transcription)
440
  st.write(response)
441
  #filename = generate_filename(str(response), ".txt")
442
  #st.write(filename)
@@ -592,4 +594,3 @@ if __name__ == "__main__":
592
  whisper_main()
593
  main()
594
 
595
-
 
3
  import glob
4
  import json
5
  import math
6
+ #import mistune
7
  import openai
8
  import os
9
  import pytz
 
13
  import textract
14
  import time
15
  import zipfile
16
+ import huggingface_hub
17
+ import dotenv
18
  from audio_recorder_streamlit import audio_recorder
19
  from bs4 import BeautifulSoup
20
  from collections import deque
 
438
  if filename is not None:
439
  transcription = transcribe_audio(filename)
440
  st.write(transcription)
441
+ response = StreamLLMChatResponse(transcription['text'])
442
  st.write(response)
443
  #filename = generate_filename(str(response), ".txt")
444
  #st.write(filename)
 
594
  whisper_main()
595
  main()
596