lekkalar commited on
Commit
868f6c9
1 Parent(s): babc213

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -56,7 +56,7 @@ css="""
56
  title = """
57
  <div style="text-align: center;max-width: 700px;">
58
  <h1>Chatbot for PDFs - GPT-4</h1>
59
- <p style="text-align: center;">Upload a .PDF, click the "Load PDF to LangChain" button, <br />
60
  Wait for the Status to show Ready, start typing your questions. <br />
61
  The app is built on GPT-4 and leverages PromptTemplate</p>
62
  </div>
@@ -72,13 +72,14 @@ with gr.Blocks(css=css,theme=gr.themes.Monochrome()) as demo:
72
 
73
  with gr.Row():
74
  status = gr.Textbox(label="Status", placeholder="", interactive=False)
75
- load_pdf = gr.Button("Load PDF to LangChain")
76
  with gr.Row():
77
- document_type = gr.Radio(['DOT', 'TRANSMITTAL SUMMARY'], label="PDF is of type:")
 
78
  with gr.Row():
79
  input = gr.Textbox(label="Type in your question")
80
  output = gr.Textbox(label="Answer")
81
- submit_query = gr.Button("Submit")
82
 
83
 
84
  load_pdf.click(load_doc, inputs=[pdf_doc, openai_key], outputs=status)
 
56
  title = """
57
  <div style="text-align: center;max-width: 700px;">
58
  <h1>Chatbot for PDFs - GPT-4</h1>
59
+ <p style="text-align: center;">Upload a .PDF, click the "Load PDF" button, <br />
60
  Wait for the Status to show Ready, start typing your questions. <br />
61
  The app is built on GPT-4 and leverages PromptTemplate</p>
62
  </div>
 
72
 
73
  with gr.Row():
74
  status = gr.Textbox(label="Status", placeholder="", interactive=False)
75
+ load_pdf = gr.Button("Load PDF")
76
  with gr.Row():
77
+ document_type = gr.Dropdown(['Deed of Trust', 'TRANSMITTAL SUMMARY'], label="PDF being loaded is")
78
+
79
  with gr.Row():
80
  input = gr.Textbox(label="Type in your question")
81
  output = gr.Textbox(label="Answer")
82
+ submit_query = gr.Button("Submit")
83
 
84
 
85
  load_pdf.click(load_doc, inputs=[pdf_doc, openai_key], outputs=status)