Spaces:
Build error
Build error
update
Browse files
app.py
CHANGED
@@ -117,6 +117,7 @@ def lang_model_response(prompt, prompt_en, language):
|
|
117 |
#if language == 'en':
|
118 |
prompt = p_en + prompt_en + "\n" + "Answer: "
|
119 |
solution_en = query(prompt, 'en')
|
|
|
120 |
if language == 'es':
|
121 |
prompt = p_es + prompt + "\n" + "Responder: "
|
122 |
solution = query(prompt, 'es')
|
@@ -171,7 +172,7 @@ demo = gr.Blocks()
|
|
171 |
with demo:
|
172 |
gr.Markdown("<h1><center>Talk to Your Multilingual AI Assistant</center></h1>")
|
173 |
gr.Markdown(
|
174 |
-
"""Model pipeline consisting of - <br>- [**Whisper**](https://github.com/openai/whisper)for Speech-to-text, <br>- [**Bloom**](https://huggingface.co/bigscience/bloom) for Text-generation, and <br>- [**CoquiTTS**](https://huggingface.co/coqui) for Text-To-Speech. <br><br> Front end is built using [**Gradio Block API**](https://gradio.app/docs/#blocks).<br>All three models are Multilingual, however, there are only these three overlapping languages among them - Spanish (es), French(fr), and English(en). Hence it would be suggested to test using these languages to get the best results out of this ML-App. If an English voice input is given then both the textbox on the left-hand side would show the same transcripts. However, if the input is either in Spanish or French, then the first textbox would show the language transcript, while the next one would show its English translations.
|
175 |
""")
|
176 |
with gr.Row():
|
177 |
with gr.Column():
|
117 |
#if language == 'en':
|
118 |
prompt = p_en + prompt_en + "\n" + "Answer: "
|
119 |
solution_en = query(prompt, 'en')
|
120 |
+
solution = solution_en
|
121 |
if language == 'es':
|
122 |
prompt = p_es + prompt + "\n" + "Responder: "
|
123 |
solution = query(prompt, 'es')
|
172 |
with demo:
|
173 |
gr.Markdown("<h1><center>Talk to Your Multilingual AI Assistant</center></h1>")
|
174 |
gr.Markdown(
|
175 |
+
"""Model pipeline consisting of - <br>- [**Whisper**](https://github.com/openai/whisper)for Speech-to-text, <br>- [**Bloom**](https://huggingface.co/bigscience/bloom) for Text-generation, and <br>- [**CoquiTTS**](https://huggingface.co/coqui) for Text-To-Speech. <br><br> Front end is built using [**Gradio Block API**](https://gradio.app/docs/#blocks).<br>All three models are Multilingual, however, there are only these three overlapping languages among them - Spanish (es), French(fr), and English(en). Hence it would be suggested to test using these languages to get the best results out of this ML-App. If an English voice input is given then both the textbox on the left-hand side would show the same transcripts. However, if the input is either in Spanish or French, then the first textbox would show the language transcript, while the next one would show its English translations. <br><br>Note: This is a duplicate Space of [ysharma/Talk_to_Multilingual_AI_WhisperBloomCoqui](https://huggingface.co/spaces/ysharma/Talk_to_Multilingual_AI_WhisperBloomCoqui) and might not be maintained over time. Please refer to the original Space for updated results.
|
176 |
""")
|
177 |
with gr.Row():
|
178 |
with gr.Column():
|