oceddyyy commited on
Commit
f26a829
·
verified ·
1 Parent(s): e176209

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -20,7 +20,9 @@ inference_client = InferenceClient(
20
  token=inference_token
21
  )
22
 
23
- with open("dataset.json", "r") as f:
 
 
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]