iisadia commited on
Commit
73ffbec
·
verified ·
1 Parent(s): f317553

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -68,13 +68,13 @@ def load_movie_data():
68
  # Option 1: Try loading with trust_remote_code
69
  try:
70
  dataset = load_dataset(
71
- "eraser-benchmark/movie_rationales",
72
  split="train[:2000]",
73
  trust_remote_code=True # Explicitly allow trusted code
74
  )
75
  df = pd.DataFrame(dataset)
76
- df['context'] = "Review: " + df['review'].str.strip() + "\n" + \
77
- "Label: " + df['label'].astype(str)
78
  return df
79
 
80
  except Exception as e:
 
68
  # Option 1: Try loading with trust_remote_code
69
  try:
70
  dataset = load_dataset(
71
+ "facebook/wiki_movies",
72
  split="train[:2000]",
73
  trust_remote_code=True # Explicitly allow trusted code
74
  )
75
  df = pd.DataFrame(dataset)
76
+ df['context'] = "Question: " + df['question'].str.strip() + "\n" + \
77
+ "Answer: " + df['answer'].str.strip()
78
  return df
79
 
80
  except Exception as e: