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