Download app.py from MahimaP/DNN_Bankchurn: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/MahimaP/DNN_Bankchurn/resolve/main/app.py
- Command line
-
hf download hf://MahimaP/DNN_Bankchurn/app.py
-
curl -L -o app.py https://huggingface.co/MahimaP/DNN_Bankchurn/resolve/main/app.py
569 Bytes
| import streamlit as st | |
| import tensorflow as tf | |
| # Load your model | |
| model = tf.keras.models.load_model('best_dnn_model.h5') | |
| # Define a function to make predictions | |
| def predict(input_data): | |
| prediction = model.predict(input_data) | |
| return prediction | |
| # Streamlit app | |
| st.title('Bank Churn Prediction') | |
| user_input = st.text_input('Enter your input data') | |
| if st.button('Predict'): | |
| input_data = preprocess_user_input(user_input) # Implementing the function based on preprocessing logic | |
| prediction = predict(input_data) | |
| st.write('Prediction:', prediction) | |