Commit ยท
f46731f
1
Parent(s): a35b819
Update utilities/components.py
Browse files- utilities/components.py +1 -3
utilities/components.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from utilities.template_helpers import upload_data
|
| 3 |
-
from types import NoneType
|
| 4 |
import extra_streamlit_components as stx
|
| 5 |
|
| 6 |
import prince
|
|
@@ -19,7 +18,6 @@ import algos.regression.linR
|
|
| 19 |
import algos.regression.ridge
|
| 20 |
import algos.regression.elasticnet
|
| 21 |
|
| 22 |
-
from types import NoneType
|
| 23 |
|
| 24 |
def get_data(category, algo_name=None):
|
| 25 |
if category in ['Classification','Regression']:
|
|
@@ -28,7 +26,7 @@ def get_data(category, algo_name=None):
|
|
| 28 |
return train, test
|
| 29 |
else:
|
| 30 |
df = upload_data()
|
| 31 |
-
if
|
| 32 |
return (df,)
|
| 33 |
|
| 34 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from utilities.template_helpers import upload_data
|
|
|
|
| 3 |
import extra_streamlit_components as stx
|
| 4 |
|
| 5 |
import prince
|
|
|
|
| 18 |
import algos.regression.ridge
|
| 19 |
import algos.regression.elasticnet
|
| 20 |
|
|
|
|
| 21 |
|
| 22 |
def get_data(category, algo_name=None):
|
| 23 |
if category in ['Classification','Regression']:
|
|
|
|
| 26 |
return train, test
|
| 27 |
else:
|
| 28 |
df = upload_data()
|
| 29 |
+
if df != None:
|
| 30 |
return (df,)
|
| 31 |
|
| 32 |
|