Daniel Tse
commited on
Commit
·
0157a0b
1
Parent(s):
77d31c3
Debug summary
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def transcribe_audio(audiofile):
|
|
34 |
whisper_model = whisper.load_model("small.en")
|
35 |
transcription = whisper_model.transcribe(audiofile)
|
36 |
st.session_state['transcription'] = transcription
|
37 |
-
print(f"
|
38 |
st.info('Done Transcription')
|
39 |
|
40 |
return transcription
|
@@ -81,6 +81,7 @@ def summarize_podcast(audiotranscription):
|
|
81 |
#summarized_text = summarizer(text_chunks, max_len=200,min_len=50)
|
82 |
summarized_text = summarizer(text_chunks)
|
83 |
st.session_state['summary'] = summarized_text
|
|
|
84 |
return summarized_text
|
85 |
|
86 |
def prepare_text_for_qa(audiotranscription):
|
|
|
34 |
whisper_model = whisper.load_model("small.en")
|
35 |
transcription = whisper_model.transcribe(audiofile)
|
36 |
st.session_state['transcription'] = transcription
|
37 |
+
print(f"transcription: {transcription['text']}")
|
38 |
st.info('Done Transcription')
|
39 |
|
40 |
return transcription
|
|
|
81 |
#summarized_text = summarizer(text_chunks, max_len=200,min_len=50)
|
82 |
summarized_text = summarizer(text_chunks)
|
83 |
st.session_state['summary'] = summarized_text
|
84 |
+
print(f"Summary: {summarized_text}")
|
85 |
return summarized_text
|
86 |
|
87 |
def prepare_text_for_qa(audiotranscription):
|