Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ if uploaded_img is not None:
|
|
| 44 |
layer_ind = options.index(selected_option)
|
| 45 |
selected_layer = conv_layers[layer_ind]
|
| 46 |
|
| 47 |
-
func_model = Model(inputs = model.input, outputs = selected_layer.output)
|
| 48 |
|
| 49 |
fm = func_model.predict(input_img)
|
| 50 |
fm = fm[0]
|
|
|
|
| 44 |
layer_ind = options.index(selected_option)
|
| 45 |
selected_layer = conv_layers[layer_ind]
|
| 46 |
|
| 47 |
+
func_model = Model(inputs = model.layers[0].input, outputs = selected_layer.output)
|
| 48 |
|
| 49 |
fm = func_model.predict(input_img)
|
| 50 |
fm = fm[0]
|