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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,11 +69,11 @@ def load_movie_data():
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
 
 
69
  try:
70
  dataset = load_dataset(
71
  "facebook/wiki_movies",
72
+ split="train",
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