Zeimoto commited on
Commit
8222fa8
·
1 Parent(s): 8b9ef23

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ def main ():
18
  print('Init model successful')
19
  # x = st.slider('Select a value')
20
  # st.write(x, 'squared is', x * x)
21
- """
22
  wav_audio_data = st_audiorec()
23
 
24
  if wav_audio_data is not None:
@@ -27,7 +27,7 @@ def main ():
27
  dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
28
  sample = dataset[0]["audio"]
29
  st.write('Sample:', sample)
30
- """
31
  async def init_model ():
32
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
33
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
 
18
  print('Init model successful')
19
  # x = st.slider('Select a value')
20
  # st.write(x, 'squared is', x * x)
21
+
22
  wav_audio_data = st_audiorec()
23
 
24
  if wav_audio_data is not None:
 
27
  dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
28
  sample = dataset[0]["audio"]
29
  st.write('Sample:', sample)
30
+
31
  async def init_model ():
32
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
33
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32