jableable commited on
Commit
d15569c
·
verified ·
1 Parent(s): 7f8233b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -1,6 +1,15 @@
1
  import streamlit as st
2
  import keras
3
  from datasets import load_dataset, Image
 
 
 
 
 
 
 
 
 
4
 
5
  x = st.slider('Select a value')
6
  st.write(x, 'squared is', x * x)
 
1
  import streamlit as st
2
  import keras
3
  from datasets import load_dataset, Image
4
+ from huggingface_hub import hf_hub_download
5
+ import joblib
6
+
7
+ REPO_ID = "jableable/road_project"
8
+ FILENAME = "best_model.keras"
9
+
10
+ model = joblib.load(
11
+ hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
12
+ )
13
 
14
  x = st.slider('Select a value')
15
  st.write(x, 'squared is', x * x)