PiotrPasztor commited on
Commit
89eb0df
·
1 Parent(s): cd10cff

dataset kongo

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -13,9 +13,7 @@ from datasets import load_dataset
13
 
14
  ACTIONS = ["TRIP", "GITHUB", "MAIL", "CALENDAR"]
15
  NUM_ACTIONS = len(ACTIONS)
16
- DATASET_PATH = "iteratehack/code19-dataset"
17
- HF_SPLIT = "train"
18
- HF_DATASET = "iteratehack/code-19-dataset"
19
 
20
  # Confidence threshold - below this returns NONE
21
  CONFIDENCE_THRESHOLD = 0.6
@@ -233,11 +231,7 @@ class RLAgent:
233
 
234
 
235
  def load_hf_dataset():
236
- dataset = load_dataset(
237
- HF_DATASET,
238
- data_files="dataset.jsonl",
239
- split=HF_SPLIT
240
- )
241
  data = []
242
  for item in dataset:
243
  user_msg = item["messages"][1]["content"]
 
13
 
14
  ACTIONS = ["TRIP", "GITHUB", "MAIL", "CALENDAR"]
15
  NUM_ACTIONS = len(ACTIONS)
16
+ HF_DATASET = "iteratehack/code19-dataset"
 
 
17
 
18
  # Confidence threshold - below this returns NONE
19
  CONFIDENCE_THRESHOLD = 0.6
 
231
 
232
 
233
  def load_hf_dataset():
234
+ dataset = load_dataset(HF_DATASET, split="train")
 
 
 
 
235
  data = []
236
  for item in dataset:
237
  user_msg = item["messages"][1]["content"]