Samarth991 commited on
Commit
bc0dc94
1 Parent(s): 52a6ebc

adding chatbot

Browse files
Files changed (1) hide show
  1. app.py +5 -11
app.py CHANGED
@@ -130,20 +130,14 @@ with gr.Blocks(css=css) as demo:
130
  with gr.Row():
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")
140
- submit_button = gr.Button("Send Message")
141
 
 
 
 
 
142
  load_pdf.click(loading_file, None, langchain_status, queue=False)
143
  load_pdf.click(document_loader, inputs=[pdf_doc,API_key,file_extension,LLM_option], outputs=[langchain_status], queue=False)
144
-
145
- summarize_pdf.click(summarize_contents,outputs=summary)
146
-
147
  with gr.Column():
148
  with gr.Row():
149
  chatbot = gr.Chatbot(height=300)
 
130
  with gr.Row():
131
  langchain_status = gr.Textbox(label="Status", placeholder="", interactive=True)
132
  load_pdf = gr.Button("Upload File & Generate Embeddings",).style(full_width=False)
 
 
 
 
 
 
 
 
133
 
134
+ # chatbot = gr.Chatbot()
135
+ # question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
136
+ # submit_button = gr.Button("Send Message")
137
+
138
  load_pdf.click(loading_file, None, langchain_status, queue=False)
139
  load_pdf.click(document_loader, inputs=[pdf_doc,API_key,file_extension,LLM_option], outputs=[langchain_status], queue=False)
140
+
 
 
141
  with gr.Column():
142
  with gr.Row():
143
  chatbot = gr.Chatbot(height=300)