Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,6 +82,7 @@ def user_info(state):
|
|
| 82 |
uinfo = f"""情報: {state["loginuser"]}"""
|
| 83 |
gr.Info(uinfo)
|
| 84 |
#gr.Info("情報: Created by RYH International.")
|
|
|
|
| 85 |
|
| 86 |
def auth(user_name, password):
|
| 87 |
encoded = base64.b64encode(password.encode("utf-8"))
|
|
@@ -319,8 +320,8 @@ with gr.Blocks(css="footer {visibility: hidden;} .custom-image {width: 64px; hei
|
|
| 319 |
|
| 320 |
with gr.Blocks(css=".custom-btn-container { display: flex; justify-content: center; } .custom-btn { width: 150px; height: 30px; background-color: lightblue; border-radius: 10px; font-size: 12px; color: #3C82F6; }"):
|
| 321 |
with gr.Row(elem_classes=["custom-btn-container"]): # 中央揃え用のクラス
|
| 322 |
-
user_btn = gr.Button("情報", elem_classes=["custom-btn"])
|
| 323 |
-
user_btn.click(fn=user_info, inputs=[state], outputs=
|
| 324 |
|
| 325 |
#user_btn = gr.Button("情報", elem_classes=["custom-btn"])
|
| 326 |
|
|
|
|
| 82 |
uinfo = f"""情報: {state["loginuser"]}"""
|
| 83 |
gr.Info(uinfo)
|
| 84 |
#gr.Info("情報: Created by RYH International.")
|
| 85 |
+
return ge_update(visible=True)
|
| 86 |
|
| 87 |
def auth(user_name, password):
|
| 88 |
encoded = base64.b64encode(password.encode("utf-8"))
|
|
|
|
| 320 |
|
| 321 |
with gr.Blocks(css=".custom-btn-container { display: flex; justify-content: center; } .custom-btn { width: 150px; height: 30px; background-color: lightblue; border-radius: 10px; font-size: 12px; color: #3C82F6; }"):
|
| 322 |
with gr.Row(elem_classes=["custom-btn-container"]): # 中央揃え用のクラス
|
| 323 |
+
user_btn = gr.Button("情報", elem_classes=["custom-btn"], visible=False)
|
| 324 |
+
user_btn.click(fn=user_info, inputs=[state], outputs=[user_btn])
|
| 325 |
|
| 326 |
#user_btn = gr.Button("情報", elem_classes=["custom-btn"])
|
| 327 |
|