Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import speech_recognition as sr
|
|
6 |
import streamlit as st
|
7 |
from huggingface_hub import InferenceClient
|
8 |
from gtts import gTTS
|
9 |
-
from streamlit_mic_recorder import
|
10 |
|
11 |
pre_prompt_text = ""
|
12 |
|
@@ -97,7 +97,7 @@ def detect_voice_activity(audio_data):
|
|
97 |
def def_main():
|
98 |
st.write("Di la palabra XAMAN para empezar o DETENTE para procesar")
|
99 |
|
100 |
-
recording =
|
101 |
audio_data = None
|
102 |
|
103 |
while audio_data is None:
|
|
|
6 |
import streamlit as st
|
7 |
from huggingface_hub import InferenceClient
|
8 |
from gtts import gTTS
|
9 |
+
from streamlit_mic_recorder import mic_recorder
|
10 |
|
11 |
pre_prompt_text = ""
|
12 |
|
|
|
97 |
def def_main():
|
98 |
st.write("Di la palabra XAMAN para empezar o DETENTE para procesar")
|
99 |
|
100 |
+
recording = mic_recorder(recording_container=st.empty(), auto_recording=True)
|
101 |
audio_data = None
|
102 |
|
103 |
while audio_data is None:
|