Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ import streamlit as st
|
|
3 |
import pandas as pd
|
4 |
from huggingface_hub import HfApi, list_models
|
5 |
import os
|
|
|
|
|
6 |
|
7 |
# from datasets import Dataset
|
8 |
# Dataset.cleanup_cache_files
|
@@ -28,4 +30,10 @@ st.write('Read the CSV file')
|
|
28 |
data_stakeholdercount = pd.read_csv('final_data.csv')
|
29 |
st.write(data_stakeholdercount)
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import pandas as pd
|
4 |
from huggingface_hub import HfApi, list_models
|
5 |
import os
|
6 |
+
import datasets
|
7 |
+
from datasets import Dataset, DatasetDict
|
8 |
|
9 |
# from datasets import Dataset
|
10 |
# Dataset.cleanup_cache_files
|
|
|
30 |
data_stakeholdercount = pd.read_csv('final_data.csv')
|
31 |
st.write(data_stakeholdercount)
|
32 |
|
33 |
+
tds = Dataset.from_pandas(data_stakeholdercount)
|
34 |
+
ds = DatasetDict()
|
35 |
+
|
36 |
+
ds['train'] = tds
|
37 |
+
|
38 |
+
st.write(ds)
|
39 |
+
das.push_to_hub('Seetha/visual_cs')
|