Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -152,6 +152,7 @@ def audioRec():
|
|
152 |
print("Ok! sto ora elaborando il messaggio!")
|
153 |
try:
|
154 |
text = recognizer_instance.recognize_google(audio, language="it-IT")
|
|
|
155 |
js = f"""
|
156 |
<script>
|
157 |
var chatInput = parent.document.querySelector('textarea[data-testid="stChatInputTextArea"]');
|
@@ -172,7 +173,7 @@ def audioRec():
|
|
172 |
def header() :
|
173 |
col1, colx, col2 = st.columns([2, 1, 25])
|
174 |
with col2:
|
175 |
-
st.title("
|
176 |
with col1:
|
177 |
audioRec()
|
178 |
with st.expander("Cos'è BonsiAI?"):
|
|
|
152 |
print("Ok! sto ora elaborando il messaggio!")
|
153 |
try:
|
154 |
text = recognizer_instance.recognize_google(audio, language="it-IT")
|
155 |
+
print(text)
|
156 |
js = f"""
|
157 |
<script>
|
158 |
var chatInput = parent.document.querySelector('textarea[data-testid="stChatInputTextArea"]');
|
|
|
173 |
def header() :
|
174 |
col1, colx, col2 = st.columns([2, 1, 25])
|
175 |
with col2:
|
176 |
+
st.title("Bonsi A.I.", anchor=False)
|
177 |
with col1:
|
178 |
audioRec()
|
179 |
with st.expander("Cos'è BonsiAI?"):
|