Spaces:
Sleeping
Sleeping
Madhumitha19
commited on
Commit
โข
60d700a
1
Parent(s):
3a3239a
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ with open('tokenizer.pkl', 'rb') as tokenizer_file:
|
|
15 |
# Define class labels and their numerical mapping
|
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 |
st.markdown(
|
@@ -32,7 +33,7 @@ st.markdown(
|
|
32 |
emojis = ["๐คฃ","๐ฅฒ","๐ฅน","๐","๐","๐","๐คช","๐คฉ","๐ฅณ","๐ญ","๐ก","๐ฆ","๐ง","๐ฎ","๐ฅด","๐คฎ","๐คง","๐ท"]
|
33 |
|
34 |
# Create a string of emojis to use as the background
|
35 |
-
background_emojis = " ".join(emojis *
|
36 |
|
37 |
|
38 |
# Use HTML and CSS to set the background
|
@@ -54,6 +55,7 @@ background_style = f"""
|
|
54 |
padding: 20px;
|
55 |
border-radius: 10px;
|
56 |
text-align: center;
|
|
|
57 |
}}
|
58 |
</style>
|
59 |
<div class="content">
|
|
|
15 |
# Define class labels and their numerical mapping
|
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 |
+
st.set_page_config(layout = "wide")
|
19 |
|
20 |
st.title('VibeConnect ๐๐๐คช')
|
21 |
st.markdown(
|
|
|
33 |
emojis = ["๐คฃ","๐ฅฒ","๐ฅน","๐","๐","๐","๐คช","๐คฉ","๐ฅณ","๐ญ","๐ก","๐ฆ","๐ง","๐ฎ","๐ฅด","๐คฎ","๐คง","๐ท"]
|
34 |
|
35 |
# Create a string of emojis to use as the background
|
36 |
+
background_emojis = " ".join(emojis * 10) # Repeat the emojis to cover the background
|
37 |
|
38 |
|
39 |
# Use HTML and CSS to set the background
|
|
|
55 |
padding: 20px;
|
56 |
border-radius: 10px;
|
57 |
text-align: center;
|
58 |
+
opacity: 0.8
|
59 |
}}
|
60 |
</style>
|
61 |
<div class="content">
|