Spaces:
Runtime error
Runtime error
Raghavan1988
commited on
Commit
•
7271277
1
Parent(s):
9e3ca3b
testing language translation
Browse files
app.py
CHANGED
@@ -252,12 +252,12 @@ def process_and_query(text, image,audio):
|
|
252 |
# audio = audio.tobytes()
|
253 |
# audio = base64.b64encode(audio).decode('utf-8')
|
254 |
text = process_speech(audio)
|
255 |
-
|
256 |
|
257 |
# Now, use the text (either provided by the user or obtained from OpenAI) to query Vectara
|
258 |
vectara_response_json = query_vectara(text)
|
259 |
markdown_output = convert_to_markdown(vectara_response_json)
|
260 |
-
return markdown_output
|
261 |
except Exception as e:
|
262 |
return str(e)
|
263 |
|
|
|
252 |
# audio = audio.tobytes()
|
253 |
# audio = base64.b64encode(audio).decode('utf-8')
|
254 |
text = process_speech(audio)
|
255 |
+
print(text)
|
256 |
|
257 |
# Now, use the text (either provided by the user or obtained from OpenAI) to query Vectara
|
258 |
vectara_response_json = query_vectara(text)
|
259 |
markdown_output = convert_to_markdown(vectara_response_json)
|
260 |
+
return markdown_output + text
|
261 |
except Exception as e:
|
262 |
return str(e)
|
263 |
|