kidwaiaun commited on
Commit
4558bdd
·
verified ·
1 Parent(s): 5139990

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
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
- # password_input = gr.Textbox(label="Enter Password", type="password")
141
- # verify_button = gr.Button("Verify")
142
- # access_status = gr.Textbox(label="Status", interactive=False)
143
- # verify_button.click(verify_password, inputs=[password_input], outputs=[access_status])
144
- verify_button = gr.Button("Verify").click(verify_password, inputs=[gr.Textbox(label="Enter Password", type="password")], outputs=[gr.Textbox(label="Status", interactive=False)])
 
145
 
146
 
147
  with gr.Accordion("Document Feeder", open=False):
148
- # with gr.Row():
149
- # with gr.Column(scale=2):
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()
 
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()