jableable commited on
Commit
7f8233b
1 Parent(s): f140b5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -1,4 +1,16 @@
1
  import streamlit as st
 
 
2
 
3
  x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
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)
7
+
8
+ loaded_model = keras.saving.load_model("best_model.keras")
9
+
10
+
11
+
12
+ dataset = load_dataset("beans", split="train")
13
+
14
+ loaded_img = dataset[0]["image"]
15
+ print(loaded_img)
16
+