efghi7890 commited on
Commit
792d179
·
1 Parent(s): 6f5fe00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -5,9 +5,9 @@ from PIL import Image
5
  from tensorflow import keras
6
  from tensorflow.keras.applications.resnet50 import preprocess_input
7
 
8
- autoencoder = keras.models.load_model("D:/midterm/autoencoder/models/denoising_autoencoder_weights.h5")
9
- encoder = keras.models.load_model("D:/midterm/autoencoder/models/encoder.h5")
10
- decoder = keras.models.load_model("D:/midterm/autoencoder/models/decoder.h5")
11
 
12
 
13
  # Define the Gradio interface
@@ -35,7 +35,7 @@ iface = gr.Interface(
35
  title="Denoising Autoencoder",
36
  description="Upload an image and see its denoised version using a denoising autoencoder.",
37
  examples=[
38
- ["D:/midterm/autoencoder/example.jpg"]
39
  ],
40
  )
41
 
 
5
  from tensorflow import keras
6
  from tensorflow.keras.applications.resnet50 import preprocess_input
7
 
8
+ autoencoder = keras.models.load_model("./models/denoising_autoencoder_weights.h5")
9
+ encoder = keras.models.load_model("./models/encoder.h5")
10
+ decoder = keras.models.load_model("./models/decoder.h5")
11
 
12
 
13
  # Define the Gradio interface
 
35
  title="Denoising Autoencoder",
36
  description="Upload an image and see its denoised version using a denoising autoencoder.",
37
  examples=[
38
+ ["./example.jpg"]
39
  ],
40
  )
41