Skip to content

Commit

Permalink
Update dashboard_CLOUD.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Isdinval authored Jun 6, 2024
1 parent 465a736 commit 0d7aa65
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion dashboard_CLOUD.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,19 @@ def load_test_data():
else:
st.error("Failed to load data from GitHub.")
return None
return feature_names


# Load the test data
@st.cache_data() # Cache the test data to avoid reloading
def load_test_data_description():
url = 'https://raw.githubusercontent.com/Isdinval/OC_PROJET7/main/HomeCredit_columns_description.csv'
response = requests.get(url)
if response.status_code == 200:
return pd.read_csv(StringIO(response.text), delimiter=",")
else:
st.error("Failed to load data from GitHub.")
return None




Expand All @@ -185,6 +197,8 @@ def load_test_data():

# Load Test DATA
customer_data = load_test_data()
customer_data_description = load_test_data_description()
st.write(customer_data_description)

# Optimal threshold from MLflow
optimal_threshold = 0.636364
Expand Down

0 comments on commit 0d7aa65

Please sign in to comment.