Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,8 @@ def run(hf_token, service, game, functionality, nlp_command):
|
|
| 89 |
outp = {"status": "OK", "result": json.loads(res)["result"]}
|
| 90 |
else:
|
| 91 |
try:
|
| 92 |
-
|
|
|
|
| 93 |
print(f"{beijing()} [{user_name}] [{game}] {nlp_command}")
|
| 94 |
client = Client(
|
| 95 |
url,
|
|
|
|
| 89 |
outp = {"status": "OK", "result": json.loads(res)["result"]}
|
| 90 |
else:
|
| 91 |
try:
|
| 92 |
+
assert "games" in service_list
|
| 93 |
+
if service == "games":
|
| 94 |
print(f"{beijing()} [{user_name}] [{game}] {nlp_command}")
|
| 95 |
client = Client(
|
| 96 |
url,
|