Beracles
commited on
Commit
·
924963e
1
Parent(s):
80ac3aa
normalize command just before call_ai
Browse files
app.py
CHANGED
@@ -53,7 +53,6 @@ def run(hf_token, service, game, functionality, nlp_command):
|
|
53 |
space = redirect
|
54 |
url = f"https://{space}.hf.space"
|
55 |
|
56 |
-
nlp_command = normalize_text(nlp_command)
|
57 |
if token is None or token == "":
|
58 |
return "please specify hf token"
|
59 |
|
@@ -90,6 +89,7 @@ def run(hf_token, service, game, functionality, nlp_command):
|
|
90 |
assert "games" in service_list
|
91 |
if service == "games":
|
92 |
print(f"{beijing()} [{user_name}] [{game}] {nlp_command}")
|
|
|
93 |
call_ai.from_cache = True
|
94 |
outp = call_ai.call_ai(
|
95 |
service,
|
|
|
53 |
space = redirect
|
54 |
url = f"https://{space}.hf.space"
|
55 |
|
|
|
56 |
if token is None or token == "":
|
57 |
return "please specify hf token"
|
58 |
|
|
|
89 |
assert "games" in service_list
|
90 |
if service == "games":
|
91 |
print(f"{beijing()} [{user_name}] [{game}] {nlp_command}")
|
92 |
+
nlp_command = normalize_text(nlp_command)
|
93 |
call_ai.from_cache = True
|
94 |
outp = call_ai.call_ai(
|
95 |
service,
|