steveagi commited on
Commit
a92023f
·
unverified ·
1 Parent(s): 0609fac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- if service == "games":
 
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,