Beracles commited on
Commit
4f6cc6b
·
1 Parent(s): 6b5f037

enable cache

Browse files
Files changed (1) hide show
  1. call_pgai.py +2 -0
call_pgai.py CHANGED
@@ -29,6 +29,8 @@ def post_to_pgai_helper(command: str) -> Any:
29
  return None
30
 
31
 
 
 
32
  def call_pgai(service, game, functionality, nlp_command, url, hf_token):
33
  calling_start = beijing()
34
  print(f"calling ai starts at {calling_start}")
 
29
  return None
30
 
31
 
32
+ from_cache = True
33
+ @cache
34
  def call_pgai(service, game, functionality, nlp_command, url, hf_token):
35
  calling_start = beijing()
36
  print(f"calling ai starts at {calling_start}")