bori0824 commited on
Commit
767f1a2
·
verified ·
1 Parent(s): 465cd58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = ["image1.png", "image2.png", "image3.png", "image4.png", "image5.png", "image6.png"]
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: