Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from datasets import load_dataset, concatenate_datasets
|
3 |
|
4 |
def load_and_combine_datasets():
|
5 |
python_codes_dataset = load_dataset('flytech/python-codes-25k', split='train')
|
@@ -11,7 +11,7 @@ def load_and_combine_datasets():
|
|
11 |
return combined_dataset
|
12 |
|
13 |
def save_combined_dataset(combined_dataset, dataset_name):
|
14 |
-
|
15 |
|
16 |
def main():
|
17 |
st.title("Combined Dataset Viewer")
|
|
|
1 |
import streamlit as st
|
2 |
+
from datasets import load_dataset, concatenate_datasets
|
3 |
|
4 |
def load_and_combine_datasets():
|
5 |
python_codes_dataset = load_dataset('flytech/python-codes-25k', split='train')
|
|
|
11 |
return combined_dataset
|
12 |
|
13 |
def save_combined_dataset(combined_dataset, dataset_name):
|
14 |
+
combined_dataset.save_to_disk(dataset_name)
|
15 |
|
16 |
def main():
|
17 |
st.title("Combined Dataset Viewer")
|