steveagi commited on
Commit
ebd3d6d
·
1 Parent(s): 662501a
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -115,6 +115,7 @@ def run(hf_token, service, game, functionality, nlp_command):
115
  timecost = calling_end.timestamp() - calling_start.timestamp()
116
  print(f"calling ai ends at {calling_end}, costs {timecost:.2f}s")
117
  outp = json.loads(res)
 
118
  cache.add_cache(nlp_command, outp)
119
  # add proxy version info to the output
120
  outp["proxy-version"] = proxy_version
 
115
  timecost = calling_end.timestamp() - calling_start.timestamp()
116
  print(f"calling ai ends at {calling_end}, costs {timecost:.2f}s")
117
  outp = json.loads(res)
118
+ outp["cache"] = False
119
  cache.add_cache(nlp_command, outp)
120
  # add proxy version info to the output
121
  outp["proxy-version"] = proxy_version