Spaces:
Runtime error
Runtime error
Commit
•
cf597fa
1
Parent(s):
66ccff3
added spinner
Browse files
app.py
CHANGED
@@ -93,7 +93,12 @@ if uploaded_file is not None:
|
|
93 |
# Trigger transcription:
|
94 |
if is_translate:
|
95 |
if language == "Hindi":
|
96 |
-
|
|
|
|
|
|
|
97 |
else:
|
98 |
-
|
|
|
|
|
99 |
st.write(text)
|
|
|
93 |
# Trigger transcription:
|
94 |
if is_translate:
|
95 |
if language == "Hindi":
|
96 |
+
with st.spinner():
|
97 |
+
|
98 |
+
text = hi_asr_model.transcribe([audio_location], logprobs=False)[0]
|
99 |
+
print(text)
|
100 |
else:
|
101 |
+
with st.spinner():
|
102 |
+
text = en_asr_model.transcribe([audio_location], logprobs=False)[0]
|
103 |
+
print(text)
|
104 |
st.write(text)
|