vishwask commited on
Commit
c411529
·
verified ·
1 Parent(s): c610e38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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, preprocess = english_to_indian, postprocess = indian_to_english)
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):