salomonsky commited on
Commit
06d01f2
·
verified ·
1 Parent(s): d9d1b2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 st_mic_recorder
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 = st_mic_recorder(recording_container=st.empty(), auto_recording=True)
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: