Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,7 @@ def demo():
|
|
| 142 |
<b>Please do not upload confidential documents.</b>
|
| 143 |
""")
|
| 144 |
with gr.Row():
|
| 145 |
-
with gr.Column(scale =
|
| 146 |
gr.Markdown("<b>Step 1 - Upload PDF documents and Initialize RAG pipeline</b>")
|
| 147 |
with gr.Row():
|
| 148 |
document = gr.Files(height=140, file_count="multiple", file_types=[".pdf"], interactive=True, label="Upload PDF documents")
|
|
@@ -168,7 +168,7 @@ def demo():
|
|
| 168 |
|
| 169 |
with gr.Column(scale = 200):
|
| 170 |
gr.Markdown("<b>Step 2 - Chat with your Document</b>")
|
| 171 |
-
chatbot = gr.Chatbot(height=
|
| 172 |
with gr.Accordion("Relevent context from the source document", open=False):
|
| 173 |
with gr.Row():
|
| 174 |
doc_source1 = gr.Textbox(label="Reference 1", lines=2, container=True, scale=20)
|
|
|
|
| 142 |
<b>Please do not upload confidential documents.</b>
|
| 143 |
""")
|
| 144 |
with gr.Row():
|
| 145 |
+
with gr.Column(scale = 25):
|
| 146 |
gr.Markdown("<b>Step 1 - Upload PDF documents and Initialize RAG pipeline</b>")
|
| 147 |
with gr.Row():
|
| 148 |
document = gr.Files(height=140, file_count="multiple", file_types=[".pdf"], interactive=True, label="Upload PDF documents")
|
|
|
|
| 168 |
|
| 169 |
with gr.Column(scale = 200):
|
| 170 |
gr.Markdown("<b>Step 2 - Chat with your Document</b>")
|
| 171 |
+
chatbot = gr.Chatbot(height=480)
|
| 172 |
with gr.Accordion("Relevent context from the source document", open=False):
|
| 173 |
with gr.Row():
|
| 174 |
doc_source1 = gr.Textbox(label="Reference 1", lines=2, container=True, scale=20)
|