Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,11 +69,11 @@ def load_movie_data():
|
|
| 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 |
-
|
| 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 |
|