chandralegend commited on
Commit
516de6c
·
1 Parent(s): 56373de

added tutorial content

Browse files
.sessions/johndoe/level.txt CHANGED
@@ -1 +1 @@
1
- 3
 
1
+ 6
0_Introduction.py CHANGED
@@ -5,20 +5,34 @@ from utils.login import initialize_login
5
  initialize_login()
6
  initialize_level()
7
 
8
- LEVEL=0
9
 
10
- def intro_page():
11
- st.header("AI Eye Tutorial Template")
12
- st.subheader("Level 0: Introduction")
13
 
14
- st.write("""Welcome to the AI Eye Tutorial Template! This template is designed to help you create your own AI Eye tutorial.
15
- The template is divided into levels, and each level has a set of tasks that you need to complete before you can move on to the next level.
16
- You can use this template to create your own tutorial by completing the tasks in each level and adding your own content. You can also use
17
- this template to learn how to use AI Eye by completing the tasks in each level.""")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- st.info(f"Current Level: {get_level()}")
20
 
21
- if st.button("Complete"):
22
  complete_level(LEVEL)
23
 
24
- render_page(intro_page, LEVEL)
 
 
5
  initialize_login()
6
  initialize_level()
7
 
8
+ LEVEL = 0
9
 
 
 
 
10
 
11
+ def intro_page():
12
+ st.header("Speech Recognition 🗣️ ")
13
+ st.markdown(
14
+ """
15
+ Welcome to our Speech Recognition Tutorial! In this tutorial, we will explore the fascinating world of AI (Artificial Intelligence). AI is a field of computer science that focuses on creating machines or systems that can perform tasks that normally require human intelligence. It's like teaching computers to think and understand like humans!
16
+ """
17
+ )
18
+ st.image(
19
+ "https://i.pinimg.com/originals/42/78/76/42787621ed6d40f0c30f0ae423fc572c.gif",
20
+ use_column_width=True,
21
+ )
22
+ st.markdown(
23
+ """
24
+ Have you ever heard of voice assistants like Siri or Alexa? They are great examples of AI in action. Voice assistants can answer questions, play music, or even control smart devices in our homes. AI is also used in recommendation systems that suggest movies or shows we might like to watch. So, you see, AI is becoming a part of our daily lives and can help us in many ways.
25
+ """
26
+ )
27
+ st.image(
28
+ "https://miro.medium.com/max/1024/1*OkNFPAJZs-giAEKlOZI9HQ.png",
29
+ use_column_width=True,
30
+ )
31
 
32
+ st.info(f"Click on the button below to start the tutorial!")
33
 
34
+ if st.button("I am Ready!"):
35
  complete_level(LEVEL)
36
 
37
+
38
+ render_page(intro_page, LEVEL)
README.md CHANGED
@@ -1,12 +1,12 @@
1
  ---
2
- title: Aieye Tutorial Template
3
- emoji: 🌍
4
- colorFrom: green
5
- colorTo: purple
6
  sdk: streamlit
7
  sdk_version: 1.21.0
8
  app_file: 0_Introduction.py
9
- pinned: false
10
  license: openrail
11
  duplicated_from: aieye/aieye_tutorial_template
12
  ---
 
1
  ---
2
+ title: Speech Recognition
3
+ emoji: 🗣️
4
+ colorFrom: yellow
5
+ colorTo: green
6
  sdk: streamlit
7
  sdk_version: 1.21.0
8
  app_file: 0_Introduction.py
9
+ pinned: true
10
  license: openrail
11
  duplicated_from: aieye/aieye_tutorial_template
12
  ---
assets/sample1.flac ADDED
Binary file (282 kB). View file
 
pages/1_History of Speech Recognition.py ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from utils.levels import complete_level, render_page, initialize_level
3
+ from utils.login import initialize_login
4
+
5
+ LEVEL = 1
6
+
7
+ initialize_login()
8
+ initialize_level()
9
+
10
+
11
+ def step_page():
12
+ st.header("History of Speech Recognition")
13
+ st.markdown(
14
+ """
15
+ The history of speech recognition dates back several decades, and it's interesting to see how this technology has evolved over time. Let's take a journey through its key milestones:
16
+
17
+ 1. Early Attempts
18
+ In the 1950s and 1960s, scientists began exploring the idea of using computers to understand human speech. One of the first notable systems was IBM's "Audrey" in 1952, which could recognize single spoken digits. However, these early attempts were limited by the technology available at the time, and accurate speech recognition remained a significant challenge."""
19
+ )
20
+ st.image(
21
+ "https://www.beyonddesign.com/wp-content/uploads/2018/09/blog1.jpg.webp",
22
+ use_column_width=True,
23
+ )
24
+ st.markdown(
25
+ """
26
+ 2. Introduction of Hidden Markov Models (HMMs)
27
+ In the 1970s and 1980s, researchers made significant progress in speech recognition by adopting Hidden Markov Models (HMMs). HMMs allowed for the modeling of speech sounds and their transitions, enabling more accurate recognition of spoken words and phrases. This breakthrough laid the foundation for many subsequent advancements.
28
+
29
+ 3. The DARPA Challenge
30
+ In the 1980s and 1990s, the U.S. Defense Advanced Research Projects Agency (DARPA) initiated a series of speech recognition challenges to promote research in the field. These challenges played a crucial role in advancing the state of speech recognition technology. Notable milestones include the DARPA Speech Understanding Research (SUR) and the Resource Management (RM) evaluations.
31
+
32
+ 4. The Rise of Neural Networks
33
+ In the 2000s, neural networks reemerged as a powerful tool for speech recognition. Deep learning, a subfield of machine learning, revolutionized the accuracy and performance of speech recognition systems. Neural networks allowed for the automatic extraction of features from speech data, making it easier to recognize and understand spoken language.
34
+
35
+ 5. Voice Assistants and Commercial Applications
36
+ With the widespread adoption of smartphones and the Internet, speech recognition became a fundamental component of voice assistants. Apple's Siri, introduced in 2011, and subsequent voice assistants like Amazon's Alexa and Google Assistant, brought speech recognition to millions of users worldwide. These voice assistants could understand natural language commands, answer questions, and perform tasks based on spoken instructions.
37
+
38
+ 6. Ongoing Advancements
39
+ In recent years, advancements in deep learning and the availability of large-scale datasets have further improved speech recognition accuracy. State-of-the-art models, such as OpenAI's Whisper, have achieved remarkable levels of performance, enabling applications in transcription services, call centers, language translation, and more."""
40
+ )
41
+ st.image(
42
+ "https://www.gosmar.eu/machinelearning/wp-content/uploads/2020/05/cnn_img_480-1.png",
43
+ use_column_width=True,
44
+ )
45
+ st.markdown(
46
+ """The history of speech recognition is a testament to the persistence and innovation of researchers and scientists in overcoming challenges. As technology continues to progress, we can expect further improvements in accuracy, speed, and usability, opening up exciting possibilities for the future of speech recognition."""
47
+ )
48
+
49
+ st.info("Click on the button below to continue!")
50
+
51
+ if st.button("Complete"):
52
+ complete_level(LEVEL)
53
+
54
+
55
+ render_page(step_page, LEVEL)
pages/1_Step_1.py DELETED
@@ -1,15 +0,0 @@
1
- import streamlit as st
2
- from utils.levels import complete_level, render_page, initialize_level
3
- LEVEL = 1
4
-
5
- initialize_level()
6
-
7
- def step1_page():
8
- st.header("Step 1")
9
- st.subheader("Level 1: Introduction")
10
- st.write("This is the first step of the tutorial. You can add your own content here.")
11
-
12
- if st.button("Complete"):
13
- complete_level(LEVEL)
14
-
15
- render_page(step1_page, LEVEL)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pages/2_Step_2.py DELETED
@@ -1,16 +0,0 @@
1
- import streamlit as st
2
- from utils.levels import complete_level, render_page, initialize_level
3
-
4
- initialize_level()
5
-
6
- LEVEL = 2
7
-
8
- def step2_page():
9
- st.header("Step 2")
10
- st.subheader("Level 2: Introduction")
11
- st.write("This is the second step of the tutorial. You can add your own content here.")
12
-
13
- if st.button("Complete"):
14
- complete_level(LEVEL)
15
-
16
- render_page(step2_page, LEVEL)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pages/2_Uses of Speech Recognition.py ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from utils.levels import complete_level, render_page, initialize_level
3
+ from utils.login import initialize_login
4
+
5
+ LEVEL = 2
6
+
7
+ initialize_login()
8
+ initialize_level()
9
+
10
+
11
+ def step_page():
12
+ st.header("Uses of Speech Recognition")
13
+ st.markdown(
14
+ """
15
+ Speech recognition has found applications in various areas. Let's explore some of them:
16
+ 1. Voice assistants: Voice assistants like Siri, Alexa, or Google Assistant are popular examples of speech recognition technology. They can listen to our voice commands and respond by providing information, playing music, setting reminders, or even telling jokes!"""
17
+ )
18
+ st.image(
19
+ "https://cyfuture.com/blog/ojycekam/2020/05/voice-assistants-transforming-the-lives.jpg",
20
+ use_column_width=True,
21
+ )
22
+ st.markdown(
23
+ """
24
+ 2. Transcription services: Speech recognition technology is also used to convert spoken words into written text. This makes it easier to create transcriptions of meetings, interviews, or lectures. Instead of typing everything, we can use speech recognition to automatically transcribe what is being said.
25
+
26
+ 3. Accessibility: Speech recognition plays a crucial role in making technology more accessible to people with disabilities. Individuals who have difficulty using a keyboard or mouse can interact with computers and devices through voice commands. This empowers them to use technology in a way that suits their needs. """
27
+ )
28
+ st.image(
29
+ "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAACjCAMAAAA3vsLfAAACAVBMVEXi8f//cFmU0Pjzo5s+X/8AAACCTzaATzb/vW7////r9v/h9P83Wv+Dl///blfypZ7/ZUruvr5mPCu23vqt2/r0n5b6hXTm9/9qrdf/wXDj7Pj/6eY7WvL/aE//fmng9/8EBxKl0vr/2dT/YUaFWEGX1Pg0IBb/+Pd6RzI3VOEpP6ksRLWBTy+N0v/ntoZyU3Hl5vH/lYbo2uKZTTr/xr+1XETvtrN9RSb/sab/cUzp09n+dWBpQSz/gm4vVP//wWX5i3yWYT+1fU1LLiD/uK7/4t7/wmJwd36zv8pAREiolI68tLbQ1d17Pxv2l4vqq2TOk1jr4dYnGBCocUcZDwqxoqC7UkFDKRyRa1z/zcaSxeiDTiDsbm6Uqv/T6/6ei8aHv/lWfv1Pbf+YoqxSWF0nKizM2uaUnaetuMMxNDecfnKMcnOGWVXdlI00IyF4OQ1MMzD5yZL8wn7y1bNpRkOaZ2K8fnjlZ1Lw2sFYQSZiKyKddEI/HBbAjlMbHR6COS2eVj7IzMXmwpSOp73H1vehWljeboG1yP9shv9kVJJmYuStaLGaZsHIapdYWcJsVIWKjJZ4UWBgWK+ovP9/ZNe2aamFaGJ0Y92In/8fMIEUH1QLEjC6mbHXqJLTp5aIgNbmbXWqkL7IoKOIwPnIkrhbWLh2duSJgdS8jcDfm6l6rfq3KLZoAAAVZklEQVR4nO2diX8TZ3rHJVmSjxGjsUGelcxIXYxskRgie6lEJF/Y5say15gCZrkc1gRIm4ZeS2myR9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T52SxVIb9vTaQ7rcJJMCz131ncbGY+X16enM+ubzv1x5+s2zAz2gD930z9sqWGxvULHJJgX+M9cRvPcf/Ugemy2PTGBIaWPDyo2FLSOVFAROqr9cbPtp790qQHAft8bE9r8SchM53x8JNvrZBbKVr9JGmBY23AXQLGzJTVFsuWxB5FxnJNhk5VZ+woHN+agYEWyZ/xOkVhNgFg22NXls1NUZG9tq0E3Z2L4WkpvwR2pGgE1abuWr1IG501ytTvovtmdiS2YEsOWywh+z/FKx0VdnXD3p6rxXcRzY+JNCrl8orEWJTSYplF/Q17S8rbwHHBsbd1LI1WQ+2CwibFJyY7xx/wTk3KTjqhzY+JKChH9Ghm1NChvDRXGDoxUbHKO5QtjYSSHXJXhtSfTYhLkxqWHnbasD3WPp7vTFB0xs1CEvZJbLNgqS0CLqScWxlRPs3VuEMeXDvRfHPmdToySFXA7orCErtGixCSWF8gueOwYkNmq57XkQGFxKqNX6J6qxMMyixCYgt3KC74RkYAsqMu4drdOXC0FDd7aG/KSkl4MNFB58O95246ixlxIcbJdCXIqzFdjWBLiV9/NfZ7Ev6KavcVNLJtfDq6qj2PjlVuaWmgXu9dfc9rrQnvPpjzvGLUJsHEmh/K3s9mcZy+zomJdGiI0tt/KTyK+zoNp0p6htJbby1fXpzJZa55LCTsd2+Wwn3vxPQ7Zmmv2UH2Ptix1bbpf6OmP/D/x4rswFgbPHAAAAAElFTkSuQmCC",
30
+ use_column_width=True,
31
+ )
32
+ st.markdown(
33
+ """
34
+ 4. Call centers: Have you ever wondered how call centers handle a large number of customer calls? Well, speech recognition technology can analyze phone conversations to provide better customer service. It helps in understanding customer needs and routing calls to the appropriate departments. It can also assist with quality assurance by identifying areas where customer service can be improved."""
35
+ )
36
+
37
+ st.image(
38
+ "https://www.timedoctor.com/blog/images/2021/06/offshore-call-center.jpg",
39
+ use_column_width=True,
40
+ )
41
+
42
+ st.info("Click on the button below to continue!")
43
+
44
+ if st.button("Complete"):
45
+ complete_level(LEVEL)
46
+
47
+
48
+ render_page(step_page, LEVEL)
pages/3_How Current(Whisper) Systems Works?.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from utils.levels import complete_level, render_page, initialize_level
3
+ from utils.login import initialize_login
4
+
5
+ LEVEL = 3
6
+
7
+ initialize_login()
8
+ initialize_level()
9
+
10
+
11
+ def step_page():
12
+ st.header("How Current(Whisper) Systems Works?")
13
+ st.markdown(
14
+ """Now, let's talk about how speech recognition systems like Whisper work. Whisper is a cutting-edge speech recognition system developed by OpenAI. But how does it understand what we say?
15
+ When we speak, our voices create sound waves. These sound waves are converted into digital signals that computers can understand. Whisper uses advanced machine learning algorithms to process these signals and extract meaningful information."""
16
+ )
17
+ st.image(
18
+ "https://uploads-ssl.webflow.com/614c82ed388d53640613982e/63eb5ebedd3a9a738e22a03f_open%20ai%20whisper.jpg",
19
+ use_column_width=True,
20
+ )
21
+ st.markdown(
22
+ """
23
+ It works by analyzing patterns and features in spoken language. The system has been trained on vast amounts of data to recognize words, phrases, and sentences. This training allows Whisper to accurately transcribe speech and understand what we're saying.
24
+
25
+ Whisper is constantly improving and learning from new data, which helps it become even better at recognizing speech over time. It's like a clever student who keeps learning and getting smarter with practice!"""
26
+ )
27
+ st.image(
28
+ "https://miro.medium.com/v2/resize:fit:1400/1*ixOo69Ze7IS0TKU1sjrGKA.png",
29
+ use_column_width=True,
30
+ )
31
+
32
+ st.info("Click on the button below to continue!")
33
+
34
+ if st.button("Complete"):
35
+ complete_level(LEVEL)
36
+
37
+
38
+ render_page(step_page, LEVEL)
pages/4_Trying Out(Guess the Phrase).py ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from utils.levels import complete_level, render_page, initialize_level
3
+ from utils.login import initialize_login, get_login
4
+ import requests
5
+ import os
6
+
7
+
8
+ def check_sentence_similarity(source_sentence, sentence):
9
+ response = requests.post(
10
+ "https://api-inference.huggingface.co/models/sentence-transformers/all-MiniLM-L6-v2",
11
+ headers={"Authorization": "Bearer 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"},
12
+ json={
13
+ "inputs": {"source_sentence": source_sentence, "sentences": [sentence]},
14
+ },
15
+ )
16
+ return response.json()[0]
17
+
18
+
19
+ def get_audio_transcription(filename):
20
+ with open(filename, "rb") as f:
21
+ data = f.read()
22
+ response = requests.post(
23
+ "https://api-inference.huggingface.co/models/openai/whisper-medium",
24
+ headers={"Authorization": "Bearer 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"},
25
+ data=data,
26
+ )
27
+ return response.json()
28
+
29
+
30
+ LEVEL = 4
31
+
32
+ initialize_login()
33
+ initialize_level()
34
+
35
+
36
+ def step_page():
37
+ st.header("Tryit Out")
38
+
39
+ uploaded_file = st.file_uploader("Upload a file", type=["wav", "mp3", "flac"])
40
+ if uploaded_file:
41
+ audio_file = os.path.join(".sessions", get_login()["username"], "audio.flac")
42
+ with open(audio_file, "wb") as f:
43
+ f.write(uploaded_file.getbuffer())
44
+ else:
45
+ audio_file = "assets/sample1.flac"
46
+
47
+ st.audio(audio_file, format="audio/flac")
48
+
49
+ transcript = st.text_input("What did you hear?")
50
+ if st.button("Check") and transcript:
51
+ with st.spinner("Checking..."):
52
+ output = get_audio_transcription(audio_file)
53
+ similarity = check_sentence_similarity(output["text"], transcript)
54
+ if similarity > 0.75:
55
+ st.success(
56
+ f"Correct! You are {similarity * 100}% similar to the original sentence."
57
+ )
58
+ else:
59
+ st.error("You are not similar enough to the original sentence.")
60
+ st.info(f"Original sentence: {output['text']}")
61
+
62
+
63
+ render_page(step_page, LEVEL)
pages/5_Quiz.py ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from utils.levels import complete_level, render_page, initialize_level
3
+ from utils.login import initialize_login
4
+ import random
5
+
6
+ LEVEL = 5
7
+
8
+ initialize_login()
9
+ initialize_level()
10
+
11
+ questions = [
12
+ {
13
+ "question": "Which of the following best describes speech recognition?",
14
+ "options": [
15
+ "Teaching computers to understand human speech",
16
+ "Teaching humans to understand computer languages",
17
+ "Teaching computers to write code",
18
+ "Teaching humans to speak multiple languages",
19
+ ],
20
+ "answer": "Teaching computers to understand human speech",
21
+ },
22
+ {
23
+ "question": "What is one of the popular applications of speech recognition?",
24
+ "options": [
25
+ "Facial recognition",
26
+ "Virtual reality gaming",
27
+ "Voice assistants",
28
+ "Emotion detection",
29
+ ],
30
+ "answer": "Voice assistants",
31
+ },
32
+ ]
33
+ if "questions" not in st.session_state:
34
+ for i in range(len(questions)):
35
+ random.shuffle(questions[i]["options"])
36
+ random.shuffle(questions)
37
+ st.session_state["questions"] = questions
38
+
39
+
40
+ def step_page():
41
+ st.header("Quiz")
42
+ st.markdown(
43
+ """Now that you've learned about how speech recognition systems work, let's test your knowledge with a quiz!"""
44
+ )
45
+
46
+ for i in range(len(st.session_state["questions"])):
47
+ st.subheader(f"Question {i + 1}")
48
+ question = st.session_state["questions"][i]
49
+ st.markdown(question["question"])
50
+ answer = st.radio("Select an answer:", question["options"], key=f"radio{i}")
51
+
52
+ if answer == question["answer"]:
53
+ st.success("Correct!")
54
+ else:
55
+ st.error("Incorrect!")
56
+
57
+ st.info("Click on the button below to complete the tutorial!")
58
+ if st.button("Complete"):
59
+ complete_level(LEVEL)
60
+
61
+
62
+ render_page(step_page, LEVEL)
pages/{3_Congratulations.py → 6_Congratulations.py} RENAMED
@@ -3,11 +3,13 @@ from utils.levels import complete_level, render_page, initialize_level
3
 
4
  initialize_level()
5
 
6
- LEVEL = 3
 
7
 
8
  def step1_page():
9
  st.header("Congratulations!")
10
  st.subheader("You have completed the tutorial!")
11
- st.write("You can now use this template to create your own tutorial.")
 
12
 
13
- render_page(step1_page, LEVEL)
 
3
 
4
  initialize_level()
5
 
6
+ LEVEL = 6
7
+
8
 
9
  def step1_page():
10
  st.header("Congratulations!")
11
  st.subheader("You have completed the tutorial!")
12
+ st.balloons()
13
+
14
 
15
+ render_page(step1_page, LEVEL)
utils/__pycache__/__init__.cpython-310.pyc CHANGED
Binary files a/utils/__pycache__/__init__.cpython-310.pyc and b/utils/__pycache__/__init__.cpython-310.pyc differ
 
utils/__pycache__/levels.cpython-310.pyc CHANGED
Binary files a/utils/__pycache__/levels.cpython-310.pyc and b/utils/__pycache__/levels.cpython-310.pyc differ
 
utils/__pycache__/login.cpython-310.pyc CHANGED
Binary files a/utils/__pycache__/login.cpython-310.pyc and b/utils/__pycache__/login.cpython-310.pyc differ
 
utils/levels.py CHANGED
@@ -2,35 +2,41 @@ import streamlit as st
2
  from utils.login import get_login
3
  import os
4
 
 
5
  def initialize_level():
6
- if 'level' not in st.session_state:
7
  if get_login()["status"]:
8
  if not os.path.exists(f".sessions/{get_login()['username']}/level.txt"):
9
  with open(f".sessions/{get_login()['username']}/level.txt", "w") as f:
10
  f.write("0")
11
- st.session_state['level'] = 0
12
  else:
13
  with open(f".sessions/{get_login()['username']}/level.txt", "r") as f:
14
- st.session_state['level'] = int(f.read())
 
15
 
16
  def get_level():
17
- return st.session_state['level']
 
18
 
19
  def render_page(page, level):
20
  if get_login()["status"]:
21
- if st.session_state['level'] < level:
22
  st.error(f"You need to complete Level {st.session_state['level']} first!")
23
  else:
24
  page()
25
  else:
26
  st.error("You need to login first!")
27
 
 
28
  def complete_level(level):
29
- if st.session_state['level'] > level:
30
- st.info(f'You have Already completed Level {level}!')
31
  else:
32
- st.session_state['level'] = level + 1
33
  with open(f".sessions/{get_login()['username']}/level.txt", "w") as f:
34
- f.write(str(st.session_state['level']))
35
  st.balloons()
36
- st.success(f'You have completed Level {level}! You can now move on to the next level.')
 
 
 
2
  from utils.login import get_login
3
  import os
4
 
5
+
6
  def initialize_level():
7
+ if "level" not in st.session_state:
8
  if get_login()["status"]:
9
  if not os.path.exists(f".sessions/{get_login()['username']}/level.txt"):
10
  with open(f".sessions/{get_login()['username']}/level.txt", "w") as f:
11
  f.write("0")
12
+ st.session_state["level"] = 0
13
  else:
14
  with open(f".sessions/{get_login()['username']}/level.txt", "r") as f:
15
+ st.session_state["level"] = int(f.read())
16
+
17
 
18
  def get_level():
19
+ return st.session_state["level"]
20
+
21
 
22
  def render_page(page, level):
23
  if get_login()["status"]:
24
+ if st.session_state["level"] < level:
25
  st.error(f"You need to complete Level {st.session_state['level']} first!")
26
  else:
27
  page()
28
  else:
29
  st.error("You need to login first!")
30
 
31
+
32
  def complete_level(level):
33
+ if st.session_state["level"] > level:
34
+ st.info(f"You have Already completed Level {level}!")
35
  else:
36
+ st.session_state["level"] = level + 1
37
  with open(f".sessions/{get_login()['username']}/level.txt", "w") as f:
38
+ f.write(str(st.session_state["level"]))
39
  st.balloons()
40
+ st.success(
41
+ f"You have completed Level {level}! You can now move on to the next level."
42
+ )