Spaces:
Runtime error
Runtime error
add debug prints
Browse files
app.py
CHANGED
@@ -245,6 +245,10 @@ with tap_input:
|
|
245 |
bytes_to_wav(wav_audio_data, output_wav_file='output.wav', sample_rate=16000)
|
246 |
user_input = WHISPER_MODEL.transcribe('output.wav', language=WHISPER_LANG)['text']
|
247 |
|
|
|
|
|
|
|
|
|
248 |
if submitted or wav_audio_data is not None:
|
249 |
st.session_state['user_input_content'] = user_input
|
250 |
|
|
|
245 |
bytes_to_wav(wav_audio_data, output_wav_file='output.wav', sample_rate=16000)
|
246 |
user_input = WHISPER_MODEL.transcribe('output.wav', language=WHISPER_LANG)['text']
|
247 |
|
248 |
+
print(f"text input: {submitted}")
|
249 |
+
print(f"audio input: {wav_audio_data is not None}")
|
250 |
+
print(user_input)
|
251 |
+
|
252 |
if submitted or wav_audio_data is not None:
|
253 |
st.session_state['user_input_content'] = user_input
|
254 |
|