vishwask commited on
Commit
276af45
·
verified ·
1 Parent(s): 63ba8d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -278,7 +278,7 @@ def demo():
278
  with gr.Row():
279
  lang_btn = gr.Dropdown(languages_list, label="Languages", value = languages_list[1],
280
  type="value", info="Choose your language",interactive = True)
281
- gr.Dropdown.select(intitalize_lang, inputs=lang_btn)
282
 
283
  chatbot = gr.Chatbot(height=300)
284
 
@@ -318,7 +318,7 @@ def demo():
318
  queue=False)
319
  submit_btn.click(conversation, \
320
  inputs=[qa_chain, msg, chatbot], \
321
- outputs=[qa_chain, msg, chatbot, doc_source1, source1_page, doc_source2, source2_page, doc_source3, source3_page], \
322
  queue=False)
323
  clear_btn.click(lambda:[None,"",0,"",0,"",0], \
324
  inputs=None, \
 
278
  with gr.Row():
279
  lang_btn = gr.Dropdown(languages_list, label="Languages", value = languages_list[1],
280
  type="value", info="Choose your language",interactive = True)
281
+ gr.Dropdown.select(english_to_indian, inputs=lang_btn)
282
 
283
  chatbot = gr.Chatbot(height=300)
284
 
 
318
  queue=False)
319
  submit_btn.click(conversation, \
320
  inputs=[qa_chain, msg, chatbot], \
321
+ outputs=[qa_chain, english_to_indian(msg), chatbot, doc_source1, source1_page, doc_source2, source2_page, doc_source3, source3_page], \
322
  queue=False)
323
  clear_btn.click(lambda:[None,"",0,"",0,"",0], \
324
  inputs=None, \