Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,7 @@ st.set_page_config(
|
|
9 |
)
|
10 |
|
11 |
# Добавление стилей
|
12 |
-
st.markdown(
|
13 |
-
"""
|
14 |
<style>
|
15 |
/* Основной фон */
|
16 |
.main {
|
@@ -92,49 +91,48 @@ st.markdown(
|
|
92 |
to { opacity: 1; }
|
93 |
}
|
94 |
</style>
|
95 |
-
|
96 |
-
unsafe_allow_html=True,
|
97 |
-
)
|
98 |
-
|
99 |
|
100 |
# Установка параметров URL
|
101 |
-
st.experimental_set_query_params(page=
|
102 |
|
|
|
103 |
st.title("GestureGuru")
|
104 |
st.subheader("Russian Sign Language Recognition")
|
105 |
st.markdown("""
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
138 |
|
139 |
|
140 |
|
|
|
9 |
)
|
10 |
|
11 |
# Добавление стилей
|
12 |
+
st.markdown("""
|
|
|
13 |
<style>
|
14 |
/* Основной фон */
|
15 |
.main {
|
|
|
91 |
to { opacity: 1; }
|
92 |
}
|
93 |
</style>
|
94 |
+
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
95 |
|
96 |
# Установка параметров URL
|
97 |
+
st.experimental_set_query_params(page="main") # Используйте переменную page после определения
|
98 |
|
99 |
+
# Основной контент страницы
|
100 |
st.title("GestureGuru")
|
101 |
st.subheader("Russian Sign Language Recognition")
|
102 |
st.markdown("""
|
103 |
+
<div class="card fade-in">
|
104 |
+
<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>
|
105 |
+
</div>
|
106 |
+
<div class="divider"></div>
|
107 |
+
<div class="card fade-in">
|
108 |
+
<h3>Features:</h3>
|
109 |
+
<ul>
|
110 |
+
<li>Real-time sign language recognition</li>
|
111 |
+
<li>Supports multiple gestures</li>
|
112 |
+
<li>Easy to use interface</li>
|
113 |
+
</ul>
|
114 |
+
</div>
|
115 |
+
<div class="divider"></div>
|
116 |
+
<div class="card fade-in">
|
117 |
+
<h3>How it works:</h3>
|
118 |
+
<ol>
|
119 |
+
<li>Upload a video or use the camera for live recognition.</li>
|
120 |
+
<li>The model processes the video and identifies the gestures.</li>
|
121 |
+
<li>The recognized gestures are displayed as text.</li>
|
122 |
+
</ol>
|
123 |
+
</div>
|
124 |
+
<div class="divider"></div>
|
125 |
+
<div class="card fade-in">
|
126 |
+
<h3>Why use this app:</h3>
|
127 |
+
<ul>
|
128 |
+
<li>Helps bridge the communication gap between sign language users and others.</li>
|
129 |
+
<li>Useful for educational purposes and learning sign language.</li>
|
130 |
+
<li>Enhances accessibility for people with hearing impairments.</li>
|
131 |
+
</ul>
|
132 |
+
</div>
|
133 |
+
""", unsafe_allow_html=True)
|
134 |
+
st.image("image.webp", caption="Sign Language Recognition", use_column_width=True)
|
135 |
+
|
136 |
|
137 |
|
138 |
|