Spaces:
Runtime error
Runtime error
Update user_center.py
Browse files- user_center.py +6 -6
user_center.py
CHANGED
@@ -90,25 +90,25 @@ with gr.Blocks() as user_center:
|
|
90 |
gr.HTML("<h3 style='text-align:center;'>输入账号密码查看个人历史记录</h3>")
|
91 |
with gr.Row():
|
92 |
with gr.Column(scale=1):
|
93 |
-
input_name1 = gr.Textbox(label="用户名")
|
94 |
-
input_pwd1 = gr.Textbox(label="密码")
|
95 |
with gr.Row():
|
96 |
clear_button1 = gr.Button("清除")
|
97 |
login_button1 = gr.Button("登录")
|
98 |
with gr.Column(scale=1):
|
99 |
-
output_info1 = gr.Textbox(label="输出", lines=5)
|
100 |
with gr.Tab("清空数据"):
|
101 |
with gr.Row():
|
102 |
gr.HTML("<h3 style='text-align:center;'>输入账号密码清空个人历史记录与账号</h3>")
|
103 |
with gr.Row():
|
104 |
with gr.Column(scale=1):
|
105 |
-
input_name2 = gr.Textbox(label="用户名")
|
106 |
-
input_pwd2 = gr.Textbox(label="密码")
|
107 |
with gr.Row():
|
108 |
clear_button2 = gr.Button("清除")
|
109 |
delete_button2 = gr.Button("登录")
|
110 |
with gr.Column(scale=1):
|
111 |
-
output_info2 = gr.Textbox(label="输出", lines=5)
|
112 |
|
113 |
|
114 |
clear_button1.click(
|
|
|
90 |
gr.HTML("<h3 style='text-align:center;'>输入账号密码查看个人历史记录</h3>")
|
91 |
with gr.Row():
|
92 |
with gr.Column(scale=1):
|
93 |
+
input_name1 = gr.Textbox(label="用户名",interactive=True)
|
94 |
+
input_pwd1 = gr.Textbox(label="密码",interactive=True)
|
95 |
with gr.Row():
|
96 |
clear_button1 = gr.Button("清除")
|
97 |
login_button1 = gr.Button("登录")
|
98 |
with gr.Column(scale=1):
|
99 |
+
output_info1 = gr.Textbox(label="输出", lines=5,interactive=False)
|
100 |
with gr.Tab("清空数据"):
|
101 |
with gr.Row():
|
102 |
gr.HTML("<h3 style='text-align:center;'>输入账号密码清空个人历史记录与账号</h3>")
|
103 |
with gr.Row():
|
104 |
with gr.Column(scale=1):
|
105 |
+
input_name2 = gr.Textbox(label="用户名",interactive=True)
|
106 |
+
input_pwd2 = gr.Textbox(label="密码",interactive=True)
|
107 |
with gr.Row():
|
108 |
clear_button2 = gr.Button("清除")
|
109 |
delete_button2 = gr.Button("登录")
|
110 |
with gr.Column(scale=1):
|
111 |
+
output_info2 = gr.Textbox(label="输出", lines=5,interactive=False)
|
112 |
|
113 |
|
114 |
clear_button1.click(
|