Update app.py
Browse files
app.py
CHANGED
@@ -276,18 +276,18 @@ def demo():
|
|
276 |
with gr.Row():
|
277 |
db_progress = gr.Textbox(label="Vector database initialization", value="None", visible=True)
|
278 |
with gr.Row():
|
279 |
-
db_btn = gr.Button("Generate vector database"
|
280 |
with gr.Row():
|
281 |
llm_progress = gr.Textbox(value="None",label="QA chain initialization", visible=True)
|
282 |
with gr.Row():
|
283 |
-
qachain_btn = gr.Button("Initialize model"
|
284 |
|
285 |
with gr.Row():
|
286 |
lang_btn = gr.Dropdown(languages_list, label="Languages", value = languages_list[1],
|
287 |
type="value", info="Choose your language",interactive = True)
|
288 |
lang_btn.select(intitalize_lang, inputs = lang_btn)
|
289 |
|
290 |
-
chatbot = gr.Chatbot(height=
|
291 |
chatbot.change(preprocess = english_to_indian, postprocess = indian_to_english)
|
292 |
|
293 |
with gr.Row():
|
|
|
276 |
with gr.Row():
|
277 |
db_progress = gr.Textbox(label="Vector database initialization", value="None", visible=True)
|
278 |
with gr.Row():
|
279 |
+
db_btn = gr.Button("Generate vector database")
|
280 |
with gr.Row():
|
281 |
llm_progress = gr.Textbox(value="None",label="QA chain initialization", visible=True)
|
282 |
with gr.Row():
|
283 |
+
qachain_btn = gr.Button("Initialize model")
|
284 |
|
285 |
with gr.Row():
|
286 |
lang_btn = gr.Dropdown(languages_list, label="Languages", value = languages_list[1],
|
287 |
type="value", info="Choose your language",interactive = True)
|
288 |
lang_btn.select(intitalize_lang, inputs = lang_btn)
|
289 |
|
290 |
+
chatbot = gr.Chatbot(height=400)
|
291 |
chatbot.change(preprocess = english_to_indian, postprocess = indian_to_english)
|
292 |
|
293 |
with gr.Row():
|