lime-j commited on
Commit
75d181e
·
verified ·
1 Parent(s): 74f45da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -78,7 +78,9 @@ with gr.Blocks() as block_demo:
78
  print(time.time())
79
  random.seed(time.time())
80
  image = random.choice(image_list)
81
- method1, method2 = random.sample(methods, 2)
 
 
82
  # method1_suffix, method2_suffix =
83
  image1 = bucket + '/' + method1 + '/' + image
84
  image2 = bucket + '/' + method2 + '/' + image
 
78
  print(time.time())
79
  random.seed(time.time())
80
  image = random.choice(image_list)
81
+ method1, method2 = '', ''
82
+ while method1 == method2:
83
+ method1, method2 = random.sample(methods, 2)
84
  # method1_suffix, method2_suffix =
85
  image1 = bucket + '/' + method1 + '/' + image
86
  image2 = bucket + '/' + method2 + '/' + image