Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import random
|
|
4 |
# Image filenames
|
5 |
wordcloud_images = ["wordcloud_intro.png", "wordcloud_body.png", "wordcloud_conclusion.png"]
|
6 |
scrambled_images = ["image1.png", "image2.png", "image3.png", "image4.png", "image5.png", "image6.png"]
|
7 |
-
correct_order = ["
|
8 |
|
9 |
# Randomly shuffle the scrambled images
|
10 |
random.shuffle(scrambled_images)
|
@@ -22,7 +22,7 @@ def check_sequence(*images):
|
|
22 |
return f"Oops! Would you try again? You have {attempts} attempts left."
|
23 |
else:
|
24 |
attempts = 3
|
25 |
-
return "Oops! No more attempts left. Please try again."
|
26 |
|
27 |
# Gradio interface
|
28 |
with gr.Blocks() as demo:
|
|
|
4 |
# Image filenames
|
5 |
wordcloud_images = ["wordcloud_intro.png", "wordcloud_body.png", "wordcloud_conclusion.png"]
|
6 |
scrambled_images = ["image1.png", "image2.png", "image3.png", "image4.png", "image5.png", "image6.png"]
|
7 |
+
correct_order = ["image5.png", "image1.png", "image6.png", "image2.png", "image4.png", "image3.png"]
|
8 |
|
9 |
# Randomly shuffle the scrambled images
|
10 |
random.shuffle(scrambled_images)
|
|
|
22 |
return f"Oops! Would you try again? You have {attempts} attempts left."
|
23 |
else:
|
24 |
attempts = 3
|
25 |
+
return "Oops! No more attempts left. Please look at the WordCloud images carefully and try again."
|
26 |
|
27 |
# Gradio interface
|
28 |
with gr.Blocks() as demo:
|