Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,6 @@ decoder = keras.models.load_model("./models/decoder.h5")
|
|
13 |
# Define the Gradio interface
|
14 |
def denoise_image(input_image):
|
15 |
# Open the image
|
16 |
-
input_image= np.resize(input_image,(32,32,3))
|
17 |
input_array = np.array(input_image)
|
18 |
input_array = preprocess_input(input_array)
|
19 |
input_array = np.expand_dims(input_array, axis=0)
|
@@ -26,7 +25,7 @@ def denoise_image(input_image):
|
|
26 |
iface = gr.Interface(
|
27 |
fn=denoise_image,
|
28 |
inputs= [
|
29 |
-
gr.Image (label = "Original Image")
|
30 |
],
|
31 |
outputs=[
|
32 |
gr.Image (label = "Decoded Output"),
|
|
|
13 |
# Define the Gradio interface
|
14 |
def denoise_image(input_image):
|
15 |
# Open the image
|
|
|
16 |
input_array = np.array(input_image)
|
17 |
input_array = preprocess_input(input_array)
|
18 |
input_array = np.expand_dims(input_array, axis=0)
|
|
|
25 |
iface = gr.Interface(
|
26 |
fn=denoise_image,
|
27 |
inputs= [
|
28 |
+
gr.Image (label = "Original Image", shape=(32,32))
|
29 |
],
|
30 |
outputs=[
|
31 |
gr.Image (label = "Decoded Output"),
|