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 |
return gr_update(visible=True)
|
| 86 |
|
| 87 |
def auth(user_name, password):
|
|
@@ -318,9 +319,9 @@ with gr.Blocks(css="footer {visibility: hidden;} .custom-image {width: 64px; hei
|
|
| 318 |
</html>
|
| 319 |
""")
|
| 320 |
|
| 321 |
-
with gr.Blocks(
|
| 322 |
with gr.Row(elem_classes=["custom-btn-container"]): # 中央揃え用のクラス
|
| 323 |
-
user_btn = gr.Button("情報", elem_classes=["custom-btn"])
|
| 324 |
user_btn.click(fn=user_info, inputs=[state], outputs=[ubutton])
|
| 325 |
|
| 326 |
#user_btn = gr.Button("情報", elem_classes=["custom-btn"])
|
|
|
|
| 82 |
uinfo = f"""情報: {state["loginuser"]}"""
|
| 83 |
gr.Info(uinfo)
|
| 84 |
#gr.Info("情報: Created by RYH International.")
|
| 85 |
+
|
| 86 |
return gr_update(visible=True)
|
| 87 |
|
| 88 |
def auth(user_name, password):
|
|
|
|
| 319 |
</html>
|
| 320 |
""")
|
| 321 |
|
| 322 |
+
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; }") as ubutton:
|
| 323 |
with gr.Row(elem_classes=["custom-btn-container"]): # 中央揃え用のクラス
|
| 324 |
+
user_btn = gr.Button("情報", elem_classes=["custom-btn"], visible=False)
|
| 325 |
user_btn.click(fn=user_info, inputs=[state], outputs=[ubutton])
|
| 326 |
|
| 327 |
#user_btn = gr.Button("情報", elem_classes=["custom-btn"])
|