Alexander Seifert commited on
Commit
8930d8d
1 Parent(s): d8a8864

send cutoff

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -13,8 +13,8 @@ st.set_page_config(page_title="Speech to Text Transcription App")
13
 
14
 
15
  @st.cache(show_spinner=False)
16
- def transcribe(url, audio_b64):
17
- return run_transcription.call(url=url, audio_b64=audio_b64)
18
 
19
 
20
  def password_is_correct(password):
@@ -53,7 +53,7 @@ def run():
53
  disabled=(not password_is_correct(password) or (not audio_file and not url)),
54
  )
55
 
56
- audio_b64 = None
57
  if audio_file or url:
58
  with st.expander("Medien-Preview"):
59
  if audio_file:
@@ -71,7 +71,7 @@ def run():
71
  # my_bar.progress(percent_complete + 1)
72
 
73
  with st.spinner("Transkription läuft..."):
74
- transcription = transcribe(url, audio_b64)
75
 
76
  for seg in transcription["text"].split("\n\n"):
77
  st.write(seg)
 
13
 
14
 
15
  @st.cache(show_spinner=False)
16
+ def transcribe(url, audio_b64, cutoff):
17
+ return run_transcription.call(url=url, audio_b64=audio_b64, cutoff=None)
18
 
19
 
20
  def password_is_correct(password):
 
53
  disabled=(not password_is_correct(password) or (not audio_file and not url)),
54
  )
55
 
56
+ cutoff = audio_b64 = None
57
  if audio_file or url:
58
  with st.expander("Medien-Preview"):
59
  if audio_file:
 
71
  # my_bar.progress(percent_complete + 1)
72
 
73
  with st.spinner("Transkription läuft..."):
74
+ transcription = transcribe(url, audio_b64, cutoff)
75
 
76
  for seg in transcription["text"].split("\n\n"):
77
  st.write(seg)