cache
Browse files
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
|