Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 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 =
|
| 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")
|