zeimoto commited on
Commit
a86a73c
1 Parent(s): e2d1358

Update app.py comment st_audiorec

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- import st_audiorec
3
 
4
  from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
5
  from datasets import load_dataset
@@ -8,10 +8,10 @@ import torch
8
  # x = st.slider('Select a value')
9
  # st.write(x, 'squared is', x * x)
10
 
11
- wav_audio_data = st_audiorec()
12
 
13
- if wav_audio_data is not None:
14
- st.audio(wav_audio_data, format='audio/wav')
15
 
16
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
17
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
 
1
  import streamlit as st
2
+ # import st_audiorec
3
 
4
  from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
5
  from datasets import load_dataset
 
8
  # x = st.slider('Select a value')
9
  # st.write(x, 'squared is', x * x)
10
 
11
+ # wav_audio_data = st_audiorec()
12
 
13
+ # if wav_audio_data is not None:
14
+ # st.audio(wav_audio_data, format='audio/wav')
15
 
16
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
17
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32