This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from urllib.request import urlopen | |
import streamlit as st | |
from keras_model import model # your custom model | |
my_email = st.secrets['email'] | |
model_weight_file = st.secrets['model_url'] | |
if not os.path.exists('./best_weights.h5'): | |
u = urlopen(model_weight_file) |