Spaces:
Sleeping
Sleeping
Madhumitha19
commited on
Commit
โข
6a8c654
1
Parent(s):
3cf4ba1
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,16 @@ class_mapping = {"Angry": 0, "Sad": 1, "Joy": 2, "Surprise": 3}
|
|
17 |
numerical_to_label = {v: k for k, v in class_mapping.items()}
|
18 |
|
19 |
st.title('VibeConnect')
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
# Define the emojis you want to use
|
23 |
emojis = ["๐คฃ","๐ฅฒ","๐ฅน","๐","๐","๐","๐คช","๐คฉ","๐ฅณ","๐ญ","๐ก","๐ฆ","๐ง","๐ฎ","๐ฅด","๐คฎ","๐คง","๐ท"]
|
@@ -25,22 +34,6 @@ emojis = ["๐คฃ","๐ฅฒ","๐ฅน","๐","๐","๐","๐คช","๐คฉ","๐ฅณ","๐ญ",
|
|
25 |
# Create a string of emojis to use as the background
|
26 |
background_emojis = " ".join(emojis * 10) # Repeat the emojis to cover the background
|
27 |
|
28 |
-
centered_text = """
|
29 |
-
<style>
|
30 |
-
.center {
|
31 |
-
display: flex;
|
32 |
-
align-items: center;
|
33 |
-
justify-content: center;
|
34 |
-
height: 100vh; /* Adjust height as needed */
|
35 |
-
}
|
36 |
-
</style>
|
37 |
-
<div class="center">
|
38 |
-
<h1>VibeConnect</h1>
|
39 |
-
</div>
|
40 |
-
"""
|
41 |
-
|
42 |
-
# Set the HTML as the app's content
|
43 |
-
st.markdown(centered_text, unsafe_allow_html=True)
|
44 |
|
45 |
# Use HTML and CSS to set the background
|
46 |
background_style = f"""
|
@@ -72,26 +65,9 @@ background_style = f"""
|
|
72 |
# Set the HTML as the app's background
|
73 |
st.markdown(background_style, unsafe_allow_html=True)
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
display: flex;
|
79 |
-
align-items: center;
|
80 |
-
justify-content: center;
|
81 |
-
text-align: center;
|
82 |
-
}
|
83 |
-
|
84 |
-
.faded-logo {
|
85 |
-
opacity: 0.5; /* Adjust the opacity as needed */
|
86 |
-
}
|
87 |
-
</style>
|
88 |
-
<div class="center">
|
89 |
-
<img class="faded-logo" src="2448079_330685-P9SESK-66.jpg" alt="YouTube Logo" width="200">
|
90 |
-
</div>
|
91 |
-
"""
|
92 |
-
|
93 |
-
# Set the HTML as the app's content
|
94 |
-
st.markdown(faded_youtube_logo, unsafe_allow_html=True)
|
95 |
|
96 |
|
97 |
# Text input for the user to enter a sequence
|
|
|
17 |
numerical_to_label = {v: k for k, v in class_mapping.items()}
|
18 |
|
19 |
st.title('VibeConnect')
|
20 |
+
st.markdown(
|
21 |
+
"""
|
22 |
+
<style>
|
23 |
+
div.stElement {
|
24 |
+
text-align: center;
|
25 |
+
}
|
26 |
+
</style>
|
27 |
+
""",
|
28 |
+
unsafe_allow_html=True
|
29 |
+
)
|
30 |
|
31 |
# Define the emojis you want to use
|
32 |
emojis = ["๐คฃ","๐ฅฒ","๐ฅน","๐","๐","๐","๐คช","๐คฉ","๐ฅณ","๐ญ","๐ก","๐ฆ","๐ง","๐ฎ","๐ฅด","๐คฎ","๐คง","๐ท"]
|
|
|
34 |
# Create a string of emojis to use as the background
|
35 |
background_emojis = " ".join(emojis * 10) # Repeat the emojis to cover the background
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
# Use HTML and CSS to set the background
|
39 |
background_style = f"""
|
|
|
65 |
# Set the HTML as the app's background
|
66 |
st.markdown(background_style, unsafe_allow_html=True)
|
67 |
|
68 |
+
logo_path = "2448079_330685-P9SESK-66.jpg"
|
69 |
+
logo = st.image(logo_path, caption="YouTube Logo", width=200)
|
70 |
+
logo.image.image.style.opacity = 0.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
|
73 |
# Text input for the user to enter a sequence
|