Update app.py
Browse files
app.py
CHANGED
@@ -307,7 +307,7 @@ def demo():
|
|
307 |
db_progress = gr.Textbox(label="Vector Database Initialization Status", value="None", interactive=False)
|
308 |
generate_db_btn = gr.Button("Generate Vector Database")
|
309 |
|
310 |
-
|
311 |
with gr.Row():
|
312 |
llm_btn = gr.Radio(list_llm_simple, \
|
313 |
label="LLM models", value = list_llm_simple[0], type="index", info="Choose your LLM model")
|
@@ -323,7 +323,6 @@ def demo():
|
|
323 |
with gr.Row():
|
324 |
qachain_btn = gr.Button("Initialize Question Answering chain")
|
325 |
|
326 |
-
|
327 |
with gr.Tab("Step 4: Chatbot"):
|
328 |
chatbot = gr.Chatbot(label="Chat with your PDF", height=300)
|
329 |
with gr.Accordion("Advanced: Document References", open=False):
|
|
|
307 |
db_progress = gr.Textbox(label="Vector Database Initialization Status", value="None", interactive=False)
|
308 |
generate_db_btn = gr.Button("Generate Vector Database")
|
309 |
|
310 |
+
with gr.Tab("Step 3 - Initialize QA chain"):
|
311 |
with gr.Row():
|
312 |
llm_btn = gr.Radio(list_llm_simple, \
|
313 |
label="LLM models", value = list_llm_simple[0], type="index", info="Choose your LLM model")
|
|
|
323 |
with gr.Row():
|
324 |
qachain_btn = gr.Button("Initialize Question Answering chain")
|
325 |
|
|
|
326 |
with gr.Tab("Step 4: Chatbot"):
|
327 |
chatbot = gr.Chatbot(label="Chat with your PDF", height=300)
|
328 |
with gr.Accordion("Advanced: Document References", open=False):
|