Spaces:
Running
Running
Update app.py
Browse files
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 |
+
|