Skip to content

Commit

Permalink
feat: adding prompt language
Browse files Browse the repository at this point in the history
  • Loading branch information
msadeqsirjani committed Jun 14, 2023
1 parent 08ef446 commit f1ef1c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ def ask(language: str):
answer_text = engine.command(prompt=prompt)

exact_answer_voice_name = text_to_speech.convert(text=answer_text,
language=language)
language=language)

data = {
"prompt": prompt,
"prompt_language": language,
"answer": {
"text": answer_text,
"file_name": exact_answer_voice_name,
"answer_language": language,
"voice_path": url_for("download", file_name=exact_answer_voice_name, _external=True,
_scheme="http")
}
Expand Down

0 comments on commit f1ef1c8

Please sign in to comment.