Spaces:
Runtime error
Runtime error
Commit
·
a46961e
1
Parent(s):
45ea2fc
Update app.py
Browse files
app.py
CHANGED
@@ -100,11 +100,9 @@ def login_up_nft(info, u_verify, u_id, u_key, sid, cid, ava_image, log_into_publ
|
|
100 |
|
101 |
def status():
|
102 |
global GLOBAL_STATE_SUCCESS, SUCCESS_UIDS
|
103 |
-
text = "自本次更新/系统重启以来,已成功为用户设置 " + str(GLOBAL_STATE_SUCCESS) + " 次头像。"
|
104 |
for u in SUCCESS_UIDS:
|
105 |
-
text = text + "UID: " + u["uid"] + " 于 " + datetime.datetime.strptime(u["time"], '%Y-%m-%d %H:%M:%S') + " 成功设置数字头像。"
|
106 |
-
if text == "":
|
107 |
-
text = "好像从本次更新/系统重启开始还没有人设置数字头像呢~"
|
108 |
return text
|
109 |
|
110 |
with gr.Blocks() as application:
|
|
|
100 |
|
101 |
def status():
|
102 |
global GLOBAL_STATE_SUCCESS, SUCCESS_UIDS
|
103 |
+
text = "自本次更新/系统重启以来,已成功为用户设置 " + str(GLOBAL_STATE_SUCCESS) + " 次头像。"
|
104 |
for u in SUCCESS_UIDS:
|
105 |
+
text = text + "\n" + "UID: " + u["uid"] + " 于 " + datetime.datetime.strptime(u["time"], '%Y-%m-%d %H:%M:%S') + " 成功设置数字头像。"
|
|
|
|
|
106 |
return text
|
107 |
|
108 |
with gr.Blocks() as application:
|