jableable commited on
Commit
a231759
·
verified ·
1 Parent(s): 14b8d21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from datasets import load_dataset, Image
3
  from huggingface_hub import from_pretrained_keras
4
 
5
  x = st.slider('Select a value')
@@ -8,6 +8,7 @@ st.write(x, 'squared is', x * x)
8
  #loaded_model = keras.saving.load_model("jableable/road_model")
9
 
10
  model = from_pretrained_keras("keras-io/ocr-for-captcha")
 
11
  #prediction = model.predict(image)
12
  #prediction = tf.squeeze(tf.round(prediction))
13
  #print(f'The image is a {classes[(np.argmax(prediction))]}!')
 
1
  import streamlit as st
2
+ #from datasets import load_dataset, Image
3
  from huggingface_hub import from_pretrained_keras
4
 
5
  x = st.slider('Select a value')
 
8
  #loaded_model = keras.saving.load_model("jableable/road_model")
9
 
10
  model = from_pretrained_keras("keras-io/ocr-for-captcha")
11
+ model.summary()
12
  #prediction = model.predict(image)
13
  #prediction = tf.squeeze(tf.round(prediction))
14
  #print(f'The image is a {classes[(np.argmax(prediction))]}!')