Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import streamlit as st
|
|
| 2 |
|
| 3 |
# Установка конфигурации страницы
|
| 4 |
st.set_page_config(
|
| 5 |
-
page_title="
|
| 6 |
page_icon=":sparkles:",
|
| 7 |
layout="wide",
|
| 8 |
initial_sidebar_state="expanded",
|
|
@@ -95,8 +95,8 @@ st.markdown(
|
|
| 95 |
)
|
| 96 |
|
| 97 |
# Основной контент
|
| 98 |
-
st.title("
|
| 99 |
-
st.subheader("
|
| 100 |
st.markdown("""
|
| 101 |
<div class="card fade-in">
|
| 102 |
<p>This application is designed to recognize sign language using a webcam feed. The model has been trained to recognize various sign language gestures and display the corresponding text in real-time.</p>
|
|
@@ -131,9 +131,36 @@ st.markdown("""
|
|
| 131 |
""", unsafe_allow_html=True)
|
| 132 |
|
| 133 |
# Добавление картинки
|
| 134 |
-
st.image("
|
| 135 |
|
| 136 |
# Боковая панель
|
| 137 |
-
st.sidebar.markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
|
|
|
|
| 2 |
|
| 3 |
# Установка конфигурации страницы
|
| 4 |
st.set_page_config(
|
| 5 |
+
page_title="GestureGuru",
|
| 6 |
page_icon=":sparkles:",
|
| 7 |
layout="wide",
|
| 8 |
initial_sidebar_state="expanded",
|
|
|
|
| 95 |
)
|
| 96 |
|
| 97 |
# Основной контент
|
| 98 |
+
st.title("GestureGuru")
|
| 99 |
+
st.subheader("Russian Sign Language Recognition")
|
| 100 |
st.markdown("""
|
| 101 |
<div class="card fade-in">
|
| 102 |
<p>This application is designed to recognize sign language using a webcam feed. The model has been trained to recognize various sign language gestures and display the corresponding text in real-time.</p>
|
|
|
|
| 131 |
""", unsafe_allow_html=True)
|
| 132 |
|
| 133 |
# Добавление картинки
|
| 134 |
+
st.image("/mnt/data/A_colorful,_artistic_representation_of_hands_signi.png", caption="Sign Language Recognition", use_column_width=True)
|
| 135 |
|
| 136 |
# Боковая панель
|
| 137 |
+
st.sidebar.markdown(
|
| 138 |
+
"""
|
| 139 |
+
<style>
|
| 140 |
+
.sidebar .sidebar-content {
|
| 141 |
+
background: linear-gradient(135deg, #ffccbc, #ffc107);
|
| 142 |
+
padding: 1rem;
|
| 143 |
+
border-radius: 10px;
|
| 144 |
+
}
|
| 145 |
+
.sidebar .sidebar-content h2 {
|
| 146 |
+
color: #ff7043;
|
| 147 |
+
}
|
| 148 |
+
.sidebar .sidebar-content a {
|
| 149 |
+
color: #8d6e63;
|
| 150 |
+
font-size: 1.2rem;
|
| 151 |
+
text-decoration: none;
|
| 152 |
+
}
|
| 153 |
+
.sidebar .sidebar-content a:hover {
|
| 154 |
+
color: #f4511e;
|
| 155 |
+
text-decoration: underline;
|
| 156 |
+
}
|
| 157 |
+
</style>
|
| 158 |
+
<h2>Navigation</h2>
|
| 159 |
+
<a href="#camera">Camera</a><br>
|
| 160 |
+
<a href="#video-upload">Video Upload</a><br>
|
| 161 |
+
<a href="#about">About</a>
|
| 162 |
+
""",
|
| 163 |
+
unsafe_allow_html=True
|
| 164 |
+
)
|
| 165 |
|
| 166 |
|