Spaces:
Runtime error
Runtime error
Update app.py comment st_audiorec
Browse files
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 |
-
|
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
|