Spaces:
Runtime error
Runtime error
Update consult.py
Browse files- consult.py +11 -11
consult.py
CHANGED
@@ -291,17 +291,17 @@ with gr.Blocks() as consult:
|
|
291 |
save_button=gr.Button("保存本次测试数据",visible=False)
|
292 |
|
293 |
with gr.Column(visible=False) as save:
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
|
306 |
|
307 |
btn1.click(visibility, outputs=questions)
|
|
|
291 |
save_button=gr.Button("保存本次测试数据",visible=False)
|
292 |
|
293 |
with gr.Column(visible=False) as save:
|
294 |
+
with gr.Row():
|
295 |
+
gr.HTML("<h3 style='text-align:center;'>输入账号密码保存本次检测数据</h3>")
|
296 |
+
with gr.Row():
|
297 |
+
with gr.Column(scale=1):
|
298 |
+
input_name = gr.Textbox(label="用户名",interactive=True)
|
299 |
+
input_pwd = gr.Textbox(label="密码",interactive=True)
|
300 |
+
with gr.Row():
|
301 |
+
clear_button = gr.Button("清除")
|
302 |
+
submit_button = gr.Button("提交保存")
|
303 |
+
with gr.Column(scale=1):
|
304 |
+
output_info = gr.Textbox(label="输出", lines=5,interactive=False)
|
305 |
|
306 |
|
307 |
btn1.click(visibility, outputs=questions)
|