Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,9 @@ inference_client = InferenceClient(
|
|
| 20 |
token=inference_token
|
| 21 |
)
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
dataset = json.load(f)
|
| 25 |
|
| 26 |
questions = [item["question"] for item in dataset]
|
|
|
|
| 20 |
token=inference_token
|
| 21 |
)
|
| 22 |
|
| 23 |
+
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 24 |
+
DATASET_PATH = os.path.join(BASE_DIR, "dataset.json")
|
| 25 |
+
with open(DATASET_PATH, "r") as f:
|
| 26 |
dataset = json.load(f)
|
| 27 |
|
| 28 |
questions = [item["question"] for item in dataset]
|