Update app.py
Browse files
app.py
CHANGED
|
@@ -282,8 +282,9 @@ def demo():
|
|
| 282 |
type="value", info="Choose your language",interactive = True)
|
| 283 |
lang_btn.select(intitalize_lang, inputs = lang_btn)
|
| 284 |
|
| 285 |
-
chatbot = gr.Chatbot(height=300
|
| 286 |
-
|
|
|
|
| 287 |
with gr.Row():
|
| 288 |
msg = gr.Textbox(placeholder="Type message", container=True)
|
| 289 |
with gr.Accordion("References", open=False):
|
|
|
|
| 282 |
type="value", info="Choose your language",interactive = True)
|
| 283 |
lang_btn.select(intitalize_lang, inputs = lang_btn)
|
| 284 |
|
| 285 |
+
chatbot = gr.Chatbot(height=300)
|
| 286 |
+
chatbot.change(preprocess = english_to_indian, postprocess = indian_to_english)
|
| 287 |
+
|
| 288 |
with gr.Row():
|
| 289 |
msg = gr.Textbox(placeholder="Type message", container=True)
|
| 290 |
with gr.Accordion("References", open=False):
|