Spaces:
Paused
Paused
Guy
commited on
Commit
β’
870dd36
1
Parent(s):
bc0f300
fixed intro page
Browse files- app.py +1 -4
- spirit_animal/pages/intro.py +23 -22
app.py
CHANGED
@@ -17,13 +17,10 @@ PAGES = {
|
|
17 |
"Image Generator": "image_gen"
|
18 |
}
|
19 |
|
20 |
-
def intro():
|
21 |
-
st.title("Intro")
|
22 |
-
st.info("This is the intro page of the app.")
|
23 |
|
24 |
# Page functions dictionary
|
25 |
PAGE_FUNCTIONS = {
|
26 |
-
"intro": intro,
|
27 |
"quiz": quiz.quiz,
|
28 |
"image_gen": image_gen.image_gen
|
29 |
}
|
|
|
17 |
"Image Generator": "image_gen"
|
18 |
}
|
19 |
|
|
|
|
|
|
|
20 |
|
21 |
# Page functions dictionary
|
22 |
PAGE_FUNCTIONS = {
|
23 |
+
"intro": intro.intro,
|
24 |
"quiz": quiz.quiz,
|
25 |
"image_gen": image_gen.image_gen
|
26 |
}
|
spirit_animal/pages/intro.py
CHANGED
@@ -1,39 +1,40 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
st.markdown("""
|
6 |
|
7 |
-
Hello and welcome to our festive journey to discover your Christmas spirit animal! This delightful quiz is designed to reveal the magical creature that represents your personality and spirit during this wonderful holiday season. π
|
8 |
|
9 |
-
## How It Works π§
|
10 |
|
11 |
-
### 1. Start the Quiz π
|
12 |
-
Begin by heading over to our **Spirit Animal Quiz** page using the NavBar on the left hand side. You'll find a series of fun and thoughtful questions. Don't overthink it, just let your Christmas spirit guide you!
|
13 |
|
14 |
-
### 2. Chat and Interact π¨οΈ
|
15 |
-
Engage in a lively chat on our quiz page. Your responses will help us understand your holiday persona. Feel the Christmas magic as you answer each question!
|
16 |
|
17 |
-
### 3. Discover Your Spirit Animal πΎ
|
18 |
-
At the end of the quiz, your Christmas spirit animal will be revealed. Will you be a graceful reindeer, a playful snow leopard, or perhaps something even more magical? π
|
19 |
|
20 |
-
### 4. Create Your Spirit Animal Image π¨
|
21 |
-
After discovering your spirit animal, move to the **Image Generation Page**. Here, you can select themes and colors that resonate with you and your newly discovered Christmas companion.
|
22 |
|
23 |
-
### 5. Generate and Embrace the Magic π
|
24 |
-
Hit the 'Generate' button and watch as our system brings your Christmas spirit animal to life in a vibrant and unique image. Each creation is as special as your holiday spirit!
|
25 |
|
26 |
-
### 6. Download and Cherish π₯
|
27 |
-
Don't forget to download your personalized spirit animal artwork. Share it with friends and family, or keep it as a treasured memory of this Christmas season.
|
28 |
|
29 |
-
## Ready to Begin? π
|
30 |
-
Click [here](#) to start your magical journey and uncover the Christmas spirit animal that dwells within you. Let's make this holiday season unforgettable with a sprinkle of magic and a dash of wonder! π
|
31 |
|
32 |
-
---
|
33 |
|
34 |
-
Remember, this quiz is all in good fun and a way to add a little extra sparkle to your holiday season. Enjoy and Merry Christmas! ππ
|
35 |
|
36 |
|
37 |
-
"""
|
38 |
-
)
|
39 |
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
def intro():
|
4 |
+
st.title("π Welcome to the Christmas Spirit Animal Quiz! π¦")
|
5 |
|
6 |
+
st.markdown("""
|
7 |
|
8 |
+
Hello and welcome to our festive journey to discover your Christmas spirit animal! This delightful quiz is designed to reveal the magical creature that represents your personality and spirit during this wonderful holiday season. π
|
9 |
|
10 |
+
## How It Works π§
|
11 |
|
12 |
+
### 1. Start the Quiz π
|
13 |
+
Begin by heading over to our **Spirit Animal Quiz** page using the NavBar on the left hand side. You'll find a series of fun and thoughtful questions. Don't overthink it, just let your Christmas spirit guide you!
|
14 |
|
15 |
+
### 2. Chat and Interact π¨οΈ
|
16 |
+
Engage in a lively chat on our quiz page. Your responses will help us understand your holiday persona. Feel the Christmas magic as you answer each question!
|
17 |
|
18 |
+
### 3. Discover Your Spirit Animal πΎ
|
19 |
+
At the end of the quiz, your Christmas spirit animal will be revealed. Will you be a graceful reindeer, a playful snow leopard, or perhaps something even more magical? π
|
20 |
|
21 |
+
### 4. Create Your Spirit Animal Image π¨
|
22 |
+
After discovering your spirit animal, move to the **Image Generation Page**. Here, you can select themes and colors that resonate with you and your newly discovered Christmas companion.
|
23 |
|
24 |
+
### 5. Generate and Embrace the Magic π
|
25 |
+
Hit the 'Generate' button and watch as our system brings your Christmas spirit animal to life in a vibrant and unique image. Each creation is as special as your holiday spirit!
|
26 |
|
27 |
+
### 6. Download and Cherish π₯
|
28 |
+
Don't forget to download your personalized spirit animal artwork. Share it with friends and family, or keep it as a treasured memory of this Christmas season.
|
29 |
|
30 |
+
## Ready to Begin? π
|
31 |
+
Click [here](#) to start your magical journey and uncover the Christmas spirit animal that dwells within you. Let's make this holiday season unforgettable with a sprinkle of magic and a dash of wonder! π
|
32 |
|
33 |
+
---
|
34 |
|
35 |
+
Remember, this quiz is all in good fun and a way to add a little extra sparkle to your holiday season. Enjoy and Merry Christmas! ππ
|
36 |
|
37 |
|
38 |
+
"""
|
39 |
+
)
|
40 |
|