Update app.py
Browse files166 unmodified lines1671681691701711721737 unmodified lines181182183184185186187188189190191192193166 unmodified linesmain_content, sources = get_response_from_pdf(message)formatted_response = f"{main_content}\n\nSources:\n{sources}"return formatted_response# Gradio interfacewith gr.Blocks() as demo:7 unmodified linesupdate_output = gr.Textbox(label="Update Status")update_button.click(update_vectors, inputs=[file_input, parser_dropdown], outputs=update_output)with gr.Row():chatbot = gr.Chatbot(label="Conversation")with gr.Column():msg = gr.Textbox(label="Ask a question")use_web_search = gr.Checkbox(label="Use Web Search", value=False)submit = gr.Button("Submit")gr.Examples(examples=[["What are the latest developments in AI?"],166 unmodified lines1671681691701711721731747 unmodified lines182183184185186187188189190191192166 unmodified linesmain_content, sources = get_response_from_pdf(message)formatted_response = f"{main_content}\n\nSources:\n{sources}"history.append((message, formatted_response))return history# Gradio interfacewith gr.Blocks() as demo:7 unmodified linesupdate_output = gr.Textbox(label="Update Status")update_button.click(update_vectors, inputs=[file_input, parser_dropdown], outputs=update_output)chatbot = gr.Chatbot(label="Conversation")msg = gr.Textbox(label="Ask a question")use_web_search = gr.Checkbox(label="Use Web Search", value=False)submit = gr.Button("Submit")gr.Examples(examples=[["What are the latest developments in AI?"],
app.py+7-8