Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,8 @@ def load_cached_answers():
|
|
| 21 |
if os.path.exists(CACHE_FILE):
|
| 22 |
with open(CACHE_FILE, "r") as f:
|
| 23 |
return json.load(f)
|
|
|
|
|
|
|
| 24 |
return {}
|
| 25 |
|
| 26 |
def save_cached_answers(cache):
|
|
|
|
| 21 |
if os.path.exists(CACHE_FILE):
|
| 22 |
with open(CACHE_FILE, "r") as f:
|
| 23 |
return json.load(f)
|
| 24 |
+
else:
|
| 25 |
+
print('Cachee does not exist')
|
| 26 |
return {}
|
| 27 |
|
| 28 |
def save_cached_answers(cache):
|