Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ def load_dataset_into_session():
|
|
| 55 |
)
|
| 56 |
if st.button("Load Hugging Face Dataset"):
|
| 57 |
try:
|
| 58 |
-
dataset = load_dataset(dataset_name, name="
|
| 59 |
if hasattr(dataset, "to_pandas"):
|
| 60 |
st.session_state.df = dataset.to_pandas()
|
| 61 |
else:
|
|
|
|
| 55 |
)
|
| 56 |
if st.button("Load Hugging Face Dataset"):
|
| 57 |
try:
|
| 58 |
+
dataset = load_dataset(dataset_name, name="sample", split="train", trust_remote_code=True, uniform_split=True)
|
| 59 |
if hasattr(dataset, "to_pandas"):
|
| 60 |
st.session_state.df = dataset.to_pandas()
|
| 61 |
else:
|