Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,11 @@ functionality_list = [
|
|
25 |
"json",
|
26 |
]
|
27 |
|
|
|
|
|
|
|
|
|
|
|
28 |
def run(hf_token, service, game, functionality, nlp_command):
|
29 |
"""
|
30 |
event handler
|
@@ -55,10 +60,6 @@ def run(hf_token, service, game, functionality, nlp_command):
|
|
55 |
try:
|
56 |
if service not in functionality_shared[1:]:
|
57 |
pass
|
58 |
-
# t = datetime.now()
|
59 |
-
# t = t.astimezone(ZoneInfo('Asia/Shanghai'))
|
60 |
-
# t = t.replace(microsecond=0)
|
61 |
-
# print(f"{t} [{game:<12}] [{user_name[:12]:<12}] {nlp_command}")
|
62 |
|
63 |
client = Client(
|
64 |
f'https://{space}.hf.space',
|
|
|
25 |
"json",
|
26 |
]
|
27 |
|
28 |
+
t = datetime.now()
|
29 |
+
t = t.astimezone(ZoneInfo('Asia/Shanghai'))
|
30 |
+
t = t.replace(microsecond=0)
|
31 |
+
print(f"start time: {t}")
|
32 |
+
|
33 |
def run(hf_token, service, game, functionality, nlp_command):
|
34 |
"""
|
35 |
event handler
|
|
|
60 |
try:
|
61 |
if service not in functionality_shared[1:]:
|
62 |
pass
|
|
|
|
|
|
|
|
|
63 |
|
64 |
client = Client(
|
65 |
f'https://{space}.hf.space',
|