Neal Caren commited on
Commit
fd2a8f0
1 Parent(s): bf0ffa1
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,7 +6,7 @@ from simple_diarizer.diarizer import Diarizer
6
  import streamlit as st
7
 
8
 
9
-
10
  def speech_to_text(uploaded):
11
  model = whisper.load_model('tiny')
12
  result = model.transcribe(uploaded,verbose=True)
@@ -84,7 +84,7 @@ descript = ("This web app creates transcripts using OpenAI's [Whisper](https://g
84
  "can handle any file size, but requies some Python knowledge.\n"
85
  "* After uploading the file, **be sure to select the number of speakers**." )
86
 
87
-
88
  with st.form(key='my_form'):
89
  uploaded = st.file_uploader("Choose a file")
90
  nu_speakers = st.slider('Number of speakers in audio file:', min_value=1, max_value=6, value=2, step=1)
@@ -98,6 +98,6 @@ if submit:
98
  #st.write('Converting audio file.')
99
  #monotize('temp_audio')
100
  text = transcribe('temp_audio', nu_speakers)
101
-
102
 
103
  # To read file as bytes:
 
6
  import streamlit as st
7
 
8
 
9
+ '''
10
  def speech_to_text(uploaded):
11
  model = whisper.load_model('tiny')
12
  result = model.transcribe(uploaded,verbose=True)
 
84
  "can handle any file size, but requies some Python knowledge.\n"
85
  "* After uploading the file, **be sure to select the number of speakers**." )
86
 
87
+ '''
88
  with st.form(key='my_form'):
89
  uploaded = st.file_uploader("Choose a file")
90
  nu_speakers = st.slider('Number of speakers in audio file:', min_value=1, max_value=6, value=2, step=1)
 
98
  #st.write('Converting audio file.')
99
  #monotize('temp_audio')
100
  text = transcribe('temp_audio', nu_speakers)
101
+
102
 
103
  # To read file as bytes: