Spaces:
Sleeping
Sleeping
Commit
·
078bb1a
1
Parent(s):
d4462ce
Interface update
Browse files
app.py
CHANGED
|
@@ -129,13 +129,17 @@ with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
|
| 129 |
submit_btn = gr.Button("Store Embeddings", variant='primary')
|
| 130 |
with gr.Column():
|
| 131 |
message = gr.Textbox(label="Status", type="text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
chroma_out = gr.Textbox(label="ChromaDB Response", type="text")
|
| 133 |
faiss_out = gr.Textbox(label="FaissDB Response", type="text")
|
|
|
|
| 134 |
lance_out = gr.Textbox(label="LanceDB Response", type="text")
|
| 135 |
pinecone_out = gr.Textbox(label="PineconeDB Response", type="text")
|
| 136 |
|
| 137 |
-
submit_btn.click(store_embeddings, inputs=[pdf, chunk_size, chunk_overlap], outputs=message)
|
| 138 |
-
|
| 139 |
with gr.Row():
|
| 140 |
with gr.Column():
|
| 141 |
text = gr.Textbox(label="Question", type="text")
|
|
|
|
| 129 |
submit_btn = gr.Button("Store Embeddings", variant='primary')
|
| 130 |
with gr.Column():
|
| 131 |
message = gr.Textbox(label="Status", type="text")
|
| 132 |
+
|
| 133 |
+
submit_btn.click(store_embeddings, inputs=[pdf, chunk_size, chunk_overlap], outputs=message)
|
| 134 |
+
|
| 135 |
+
with gr.Row():
|
| 136 |
+
with gr.Column():
|
| 137 |
chroma_out = gr.Textbox(label="ChromaDB Response", type="text")
|
| 138 |
faiss_out = gr.Textbox(label="FaissDB Response", type="text")
|
| 139 |
+
with gr.Column():
|
| 140 |
lance_out = gr.Textbox(label="LanceDB Response", type="text")
|
| 141 |
pinecone_out = gr.Textbox(label="PineconeDB Response", type="text")
|
| 142 |
|
|
|
|
|
|
|
| 143 |
with gr.Row():
|
| 144 |
with gr.Column():
|
| 145 |
text = gr.Textbox(label="Question", type="text")
|