Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
|
|
|
|
|
|
| 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
|