Spaces:
Sleeping
Sleeping
Commit
•
52a6ebc
1
Parent(s):
2af3209
adding chatbot
Browse files
app.py
CHANGED
@@ -131,8 +131,9 @@ with gr.Blocks(css=css) as demo:
|
|
131 |
langchain_status = gr.Textbox(label="Status", placeholder="", interactive=True)
|
132 |
load_pdf = gr.Button("Upload File & Generate Embeddings",).style(full_width=False)
|
133 |
with gr.Row():
|
134 |
-
|
135 |
-
|
|
|
136 |
|
137 |
chatbot = gr.Chatbot()
|
138 |
question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
|
@@ -152,5 +153,4 @@ with gr.Blocks(css=css) as demo:
|
|
152 |
message = gr.Textbox(label="Type your question?",lines=1).style(full_width=False)
|
153 |
submit_query = gr.Button(value="Send message", variant="secondary", scale = 1)
|
154 |
|
155 |
-
|
156 |
demo.launch()
|
|
|
131 |
langchain_status = gr.Textbox(label="Status", placeholder="", interactive=True)
|
132 |
load_pdf = gr.Button("Upload File & Generate Embeddings",).style(full_width=False)
|
133 |
with gr.Row():
|
134 |
+
with gr.Box():
|
135 |
+
summary = gr.Textbox(label="Summary")
|
136 |
+
summarize_pdf = gr.Button("Summarize the document").style(full_width=False)
|
137 |
|
138 |
chatbot = gr.Chatbot()
|
139 |
question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
|
|
|
153 |
message = gr.Textbox(label="Type your question?",lines=1).style(full_width=False)
|
154 |
submit_query = gr.Button(value="Send message", variant="secondary", scale = 1)
|
155 |
|
|
|
156 |
demo.launch()
|