Spaces:
Sleeping
Sleeping
mistermprah
commited on
Commit
•
6da5de1
1
Parent(s):
faac171
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,28 @@ def classify_audio(filepath):
|
|
19 |
# Streamlit app layout
|
20 |
st.title("Heartbeat Sound Classification")
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
# File uploader for audio files
|
23 |
uploaded_file = st.file_uploader("Upload an audio file", type=["wav", "mp3"])
|
24 |
|
|
|
19 |
# Streamlit app layout
|
20 |
st.title("Heartbeat Sound Classification")
|
21 |
|
22 |
+
# Add custom CSS for styling
|
23 |
+
st.markdown(
|
24 |
+
"""
|
25 |
+
<style>
|
26 |
+
body {
|
27 |
+
background-color: #e0f7fa; /* Light sea blue background */
|
28 |
+
}
|
29 |
+
.stApp {
|
30 |
+
color: #006064; /* Dark sea blue text */
|
31 |
+
}
|
32 |
+
.stButton > button {
|
33 |
+
background-color: #006064; /* Dark sea blue button background */
|
34 |
+
color: white; /* White text */
|
35 |
+
}
|
36 |
+
.stButton > button:hover {
|
37 |
+
background-color: #004d40; /* Darker sea blue on hover */
|
38 |
+
}
|
39 |
+
</style>
|
40 |
+
""",
|
41 |
+
unsafe_allow_html=True
|
42 |
+
)
|
43 |
+
|
44 |
# File uploader for audio files
|
45 |
uploaded_file = st.file_uploader("Upload an audio file", type=["wav", "mp3"])
|
46 |
|