Update app.py
Browse files
app.py
CHANGED
@@ -137,20 +137,20 @@ with gr.Blocks() as chat_ui:
|
|
137 |
gr.Markdown("# 📄 HR-Talk")
|
138 |
|
139 |
with gr.Accordion("Authenticator", open=False):
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
verify_button
|
|
|
145 |
|
146 |
|
147 |
with gr.Accordion("Document Feeder", open=False):
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
#
|
153 |
-
upload_btn = gr.Button("Process PDF").click(process_pdf, inputs=[gr.File(label="Upload PDF")], outputs=[gr.Textbox(label="Processing Status", interactive=False)])
|
154 |
|
155 |
|
156 |
chatbot = gr.Chatbot()
|
|
|
137 |
gr.Markdown("# 📄 HR-Talk")
|
138 |
|
139 |
with gr.Accordion("Authenticator", open=False):
|
140 |
+
with gr.Row():
|
141 |
+
password_input = gr.Textbox(label="Enter Password", type="password")
|
142 |
+
verify_button = gr.Button("Verify")
|
143 |
+
access_status = gr.Textbox(label="Status", interactive=False)
|
144 |
+
verify_button.click(verify_password, inputs=[password_input], outputs=[access_status])
|
145 |
+
# verify_button = gr.Button("Verify").click(verify_password, inputs=[gr.Textbox(label="Enter Password", type="password")], outputs=[gr.Textbox(label="Status", interactive=False)])
|
146 |
|
147 |
|
148 |
with gr.Accordion("Document Feeder", open=False):
|
149 |
+
with gr.Row():
|
150 |
+
file_upload = gr.File(label="Upload PDF")
|
151 |
+
upload_btn = gr.Button("Process PDF")
|
152 |
+
status = gr.Textbox(label="Processing Status", interactive=False)
|
153 |
+
# upload_btn = gr.Button("Process PDF").click(process_pdf, inputs=[gr.File(label="Upload PDF")], outputs=[gr.Textbox(label="Processing Status", interactive=False)])
|
|
|
154 |
|
155 |
|
156 |
chatbot = gr.Chatbot()
|