Spaces:
Sleeping
Sleeping
Commit ·
8b11c3e
1
Parent(s): bd66284
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,8 @@ if not os.path.exists(CACHE_FILE):
|
|
| 56 |
raise FileNotFoundError(f"Cache file {CACHE_FILE} not found. Please upload ubuntu_data_cache.pt")
|
| 57 |
|
| 58 |
cache = torch.load(CACHE_FILE, map_location="cpu", weights_only=False)
|
| 59 |
-
train_pairs = cache["train"]
|
| 60 |
-
test_pairs = cache["test"]
|
| 61 |
vocab = cache["vocab"]
|
| 62 |
|
| 63 |
# safety: rebuild idx2word if needed
|
|
|
|
| 56 |
raise FileNotFoundError(f"Cache file {CACHE_FILE} not found. Please upload ubuntu_data_cache.pt")
|
| 57 |
|
| 58 |
cache = torch.load(CACHE_FILE, map_location="cpu", weights_only=False)
|
| 59 |
+
# train_pairs = cache["train"]
|
| 60 |
+
# test_pairs = cache["test"]
|
| 61 |
vocab = cache["vocab"]
|
| 62 |
|
| 63 |
# safety: rebuild idx2word if needed
|