Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ with gr.Blocks(css=css,theme=gr.themes.Monochrome()) as demo:
|
|
115 |
|
116 |
with gr.Row():
|
117 |
status = gr.Textbox(label="Status", placeholder="", interactive=False)
|
118 |
-
load_pdf = gr.Button(
|
119 |
|
120 |
with gr.Row():
|
121 |
document_type = gr.Radio(['Deed of Trust', 'Transmittal Summary'], label="Select the Document Type")
|
@@ -125,7 +125,7 @@ with gr.Blocks(css=css,theme=gr.themes.Monochrome()) as demo:
|
|
125 |
with gr.Row():
|
126 |
input = gr.Textbox(label="Type in your question")
|
127 |
output = gr.Textbox(label="Answer")
|
128 |
-
submit_query = gr.Button(
|
129 |
|
130 |
|
131 |
load_pdf.click(load_pdf_and_generate_embeddings, inputs=[pdf_doc, openai_key], outputs=status)
|
|
|
115 |
|
116 |
with gr.Row():
|
117 |
status = gr.Textbox(label="Status", placeholder="", interactive=False)
|
118 |
+
load_pdf = gr.Button("Please upload your PDF").style(full_width=False)
|
119 |
|
120 |
with gr.Row():
|
121 |
document_type = gr.Radio(['Deed of Trust', 'Transmittal Summary'], label="Select the Document Type")
|
|
|
125 |
with gr.Row():
|
126 |
input = gr.Textbox(label="Type in your question")
|
127 |
output = gr.Textbox(label="Answer")
|
128 |
+
submit_query = gr.Button("Submit your own question to gpt-4").style(full_width=False)
|
129 |
|
130 |
|
131 |
load_pdf.click(load_pdf_and_generate_embeddings, inputs=[pdf_doc, openai_key], outputs=status)
|