Essa20001 commited on
Commit
9d318b8
·
verified ·
1 Parent(s): fd155f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,11 +2,11 @@ import streamlit as st
2
  import numpy as np
3
  from PIL import Image
4
  from io import BytesIO
5
- import tensorflow as tf
6
 
7
  st.title("Complete image using an AI model trained on Flickr images with the Pix2pix architecture.")
8
  image = st.file_uploader("Upload an image", type=["jpg", "png","jpeg"])
9
- model = tf.keras.models.load_model('complete_.keras')
10
 
11
  if image :
12
  button = st.button("Complete")
 
2
  import numpy as np
3
  from PIL import Image
4
  from io import BytesIO
5
+ import keras
6
 
7
  st.title("Complete image using an AI model trained on Flickr images with the Pix2pix architecture.")
8
  image = st.file_uploader("Upload an image", type=["jpg", "png","jpeg"])
9
+ model = keras.models.load_model('complete_.keras')
10
 
11
  if image :
12
  button = st.button("Complete")