Spaces:
Runtime error
Runtime error
testing audio
Browse files
app.py
CHANGED
@@ -226,7 +226,8 @@ def process_and_query(text, image, audio):
|
|
226 |
|
227 |
if audio is not None:
|
228 |
text = process_speech(audio)
|
229 |
-
|
|
|
230 |
|
231 |
# Now, use the text (either provided by the user or obtained from OpenAI) to query Vectara
|
232 |
vectara_response_json = query_vectara(text)
|
|
|
226 |
|
227 |
if audio is not None:
|
228 |
text = process_speech(audio)
|
229 |
+
# this should print in the log the text that was extracted from the audio
|
230 |
+
print("text : ", text)
|
231 |
|
232 |
# Now, use the text (either provided by the user or obtained from OpenAI) to query Vectara
|
233 |
vectara_response_json = query_vectara(text)
|