Essa20001 commited on
Commit
16d1a1a
·
verified ·
1 Parent(s): 22b1c43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,12 +1,12 @@
1
  import streamlit as st
2
- import keras
3
  import numpy as np
4
  from PIL import Image
5
  from io import BytesIO
 
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('/content/drive/MyDrive/complete_.keras')
10
 
11
  if image :
12
  button = st.button("Complete")
 
1
  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")