simayhosmeyve commited on
Commit
5bf17c8
1 Parent(s): 050ad23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -492,11 +492,11 @@ plt.show()
492
  def result(Input,Choice,Step):
493
 
494
  if Choice=="Indoor-Coloring":
495
- if Step == 1:
496
  pre_trained = tf.keras.models.load_model("indoor_1.h5")
497
- if Step == 2:
498
  pre_trained = tf.keras.models.load_model("indoor_2.h5")
499
- if Step == 3:
500
  pre_trained = tf.keras.models.load_model("indoor_3.h5")
501
 
502
  size0 = Input.shape[0]
@@ -521,11 +521,11 @@ def result(Input,Choice,Step):
521
 
522
  if Choice=="Outdoor-Coloring":
523
 
524
- if Step == 1:
525
  pre_trained = tf.keras.models.load_model("outdoor_1.h5")
526
- if Step == 2:
527
  pre_trained = tf.keras.models.load_model("outdoor_2.h5")
528
- if Step == 3:
529
  pre_trained = tf.keras.models.load_model("outdoor_3.h5")
530
 
531
  size0 = Input.shape[0]
 
492
  def result(Input,Choice,Step):
493
 
494
  if Choice=="Indoor-Coloring":
495
+ if Step == 1.0:
496
  pre_trained = tf.keras.models.load_model("indoor_1.h5")
497
+ if Step == 2.0:
498
  pre_trained = tf.keras.models.load_model("indoor_2.h5")
499
+ if Step == 3.0:
500
  pre_trained = tf.keras.models.load_model("indoor_3.h5")
501
 
502
  size0 = Input.shape[0]
 
521
 
522
  if Choice=="Outdoor-Coloring":
523
 
524
+ if Step == 1.0:
525
  pre_trained = tf.keras.models.load_model("outdoor_1.h5")
526
+ if Step == 2.0:
527
  pre_trained = tf.keras.models.load_model("outdoor_2.h5")
528
+ if Step == 3.0:
529
  pre_trained = tf.keras.models.load_model("outdoor_3.h5")
530
 
531
  size0 = Input.shape[0]