Spaces:
Sleeping
Sleeping
Commit
·
82eb5b8
1
Parent(s):
fb56610
Interface update
Browse files
app.py
CHANGED
|
@@ -88,6 +88,10 @@ with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
|
| 88 |
submit_btn = gr.Button("Store Embeddings", variant='primary')
|
| 89 |
with gr.Column():
|
| 90 |
message = gr.Textbox(label="Status", type="text")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
submit_btn.click(store_embeddings, inputs=[pdf, chunk_size, chunk_overlap], outputs=message)
|
| 93 |
|
|
@@ -97,11 +101,6 @@ with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
|
| 97 |
with gr.Row():
|
| 98 |
chat_clear_btn = gr.ClearButton(components=[text])
|
| 99 |
chat_submit_btn = gr.Button("Submit", variant='primary')
|
| 100 |
-
with gr.Column():
|
| 101 |
-
chroma_out = gr.Textbox(label="ChromaDB Response", type="text")
|
| 102 |
-
faiss_out = gr.Textbox(label="FaissDB Response", type="text")
|
| 103 |
-
lance_out = gr.Textbox(label="LanceDB Response", type="text")
|
| 104 |
-
pinecone_out = gr.Textbox(label="PineconeDB Response", type="text")
|
| 105 |
|
| 106 |
chat_submit_btn.click(inference, inputs=[text], outputs=[chroma_out, faiss_out, lance_out,
|
| 107 |
pinecone_out])
|
|
|
|
| 88 |
submit_btn = gr.Button("Store Embeddings", variant='primary')
|
| 89 |
with gr.Column():
|
| 90 |
message = gr.Textbox(label="Status", type="text")
|
| 91 |
+
chroma_out = gr.Textbox(label="ChromaDB Response", type="text")
|
| 92 |
+
faiss_out = gr.Textbox(label="FaissDB Response", type="text")
|
| 93 |
+
lance_out = gr.Textbox(label="LanceDB Response", type="text")
|
| 94 |
+
pinecone_out = gr.Textbox(label="PineconeDB Response", type="text")
|
| 95 |
|
| 96 |
submit_btn.click(store_embeddings, inputs=[pdf, chunk_size, chunk_overlap], outputs=message)
|
| 97 |
|
|
|
|
| 101 |
with gr.Row():
|
| 102 |
chat_clear_btn = gr.ClearButton(components=[text])
|
| 103 |
chat_submit_btn = gr.Button("Submit", variant='primary')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
chat_submit_btn.click(inference, inputs=[text], outputs=[chroma_out, faiss_out, lance_out,
|
| 106 |
pinecone_out])
|