Update app.py
Browse files
app.py
CHANGED
|
@@ -142,13 +142,14 @@ def demo():
|
|
| 142 |
<style>
|
| 143 |
.gr-block.gr-box { display: flex; }
|
| 144 |
.gr-block.gr-box > div:first-child {
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
</style>
|
| 149 |
<center><h1>RAG PDF chatbot</h1></center>
|
| 150 |
""")
|
| 151 |
|
|
|
|
| 152 |
gr.Markdown("""<b>Query your PDF documents!</b> This AI agent is designed to perform retrieval augmented generation (RAG) on PDF documents. The app is hosted on Hugging Face Hub for the sole purpose of demonstration. <b>Please do not upload confidential documents.</b>""")
|
| 153 |
|
| 154 |
with gr.Row():
|
|
@@ -170,7 +171,7 @@ def demo():
|
|
| 170 |
qachain_btn = gr.Button("Initialize QA Chatbot")
|
| 171 |
llm_progress = gr.Textbox(value="Not initialized", show_label=False)
|
| 172 |
|
| 173 |
-
|
| 174 |
|
| 175 |
# Right Column (wide)
|
| 176 |
with gr.Column(scale=8):
|
|
|
|
| 142 |
<style>
|
| 143 |
.gr-block.gr-box { display: flex; }
|
| 144 |
.gr-block.gr-box > div:first-child {
|
| 145 |
+
max-width: 180px !important;
|
| 146 |
+
flex: 0 0 180px !important;
|
| 147 |
+
}
|
| 148 |
</style>
|
| 149 |
<center><h1>RAG PDF chatbot</h1></center>
|
| 150 |
""")
|
| 151 |
|
| 152 |
+
|
| 153 |
gr.Markdown("""<b>Query your PDF documents!</b> This AI agent is designed to perform retrieval augmented generation (RAG) on PDF documents. The app is hosted on Hugging Face Hub for the sole purpose of demonstration. <b>Please do not upload confidential documents.</b>""")
|
| 154 |
|
| 155 |
with gr.Row():
|
|
|
|
| 171 |
qachain_btn = gr.Button("Initialize QA Chatbot")
|
| 172 |
llm_progress = gr.Textbox(value="Not initialized", show_label=False)
|
| 173 |
|
| 174 |
+
|
| 175 |
|
| 176 |
# Right Column (wide)
|
| 177 |
with gr.Column(scale=8):
|