try to fix configs.py
Browse files- bbc_alltime.py +6 -1
bbc_alltime.py
CHANGED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
import datasets
|
| 2 |
import json
|
|
|
|
|
|
|
| 3 |
|
| 4 |
dl = datasets.DownloadManager()
|
| 5 |
-
dl.download('configs.py')
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
print(os.path.exists('configs.py'), '-----')
|
| 8 |
|
|
|
|
| 1 |
import datasets
|
| 2 |
import json
|
| 3 |
+
import os
|
| 4 |
+
import sys
|
| 5 |
|
| 6 |
dl = datasets.DownloadManager()
|
| 7 |
+
configs_file = dl.download('https://huggingface.co/datasets/RealTimeData/bbc_alltime/raw/main/configs.py')
|
| 8 |
+
|
| 9 |
+
path = os.path.dirname(configs_file)
|
| 10 |
+
sys.path.append(path)
|
| 11 |
|
| 12 |
print(os.path.exists('configs.py'), '-----')
|
| 13 |
|