Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ from kmodes.kprototypes import KPrototypes
|
|
24 |
import plotly.graph_objects as go
|
25 |
import streamlit as st
|
26 |
#pip install google-generativeai
|
27 |
-
|
28 |
-
|
29 |
import os
|
30 |
from huggingface_hub import hf_hub_download
|
31 |
|
@@ -37,7 +37,6 @@ token = os.environ["HUGGING_FACE_HUB_TOKEN"]
|
|
37 |
|
38 |
# Download the file
|
39 |
local_file = hf_hub_download(repo_id=repo_id, filename=filename, repo_type="dataset",token=token)
|
40 |
-
>>>>>>> a1737e215eee9b3b19a3c8b876c3d8053c8ba3ec
|
41 |
|
42 |
|
43 |
|
@@ -65,11 +64,7 @@ analysis_option = st.sidebar.selectbox('Select Analysis', ['Data','EDA', 'Machin
|
|
65 |
## Loading data
|
66 |
@st.cache_data()
|
67 |
def fetch_data():
|
68 |
-
<<<<<<< HEAD
|
69 |
-
data = pd.read_parquet("EDA_DATA.parquet")
|
70 |
-
=======
|
71 |
data = pd.read_parquet(local_file)
|
72 |
-
>>>>>>> a1737e215eee9b3b19a3c8b876c3d8053c8ba3ec
|
73 |
return data
|
74 |
data = fetch_data()
|
75 |
|
@@ -1004,15 +999,6 @@ def imputer(filtered_data):
|
|
1004 |
return ML(Ml_data, scaler, unscaled_data)
|
1005 |
|
1006 |
|
1007 |
-
<<<<<<< HEAD
|
1008 |
-
@st.cache_data()
|
1009 |
-
def fetch_data_1():
|
1010 |
-
data = pd.read_parquet("ML_DATA.parquet")
|
1011 |
-
return data
|
1012 |
-
|
1013 |
-
|
1014 |
-
=======
|
1015 |
-
|
1016 |
filename_1 = "ML_DATA.parquet"
|
1017 |
|
1018 |
# Access the token
|
|
|
24 |
import plotly.graph_objects as go
|
25 |
import streamlit as st
|
26 |
#pip install google-generativeai
|
27 |
+
|
28 |
+
|
29 |
import os
|
30 |
from huggingface_hub import hf_hub_download
|
31 |
|
|
|
37 |
|
38 |
# Download the file
|
39 |
local_file = hf_hub_download(repo_id=repo_id, filename=filename, repo_type="dataset",token=token)
|
|
|
40 |
|
41 |
|
42 |
|
|
|
64 |
## Loading data
|
65 |
@st.cache_data()
|
66 |
def fetch_data():
|
|
|
|
|
|
|
67 |
data = pd.read_parquet(local_file)
|
|
|
68 |
return data
|
69 |
data = fetch_data()
|
70 |
|
|
|
999 |
return ML(Ml_data, scaler, unscaled_data)
|
1000 |
|
1001 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1002 |
filename_1 = "ML_DATA.parquet"
|
1003 |
|
1004 |
# Access the token
|