osheina commited on
Commit
aa5a8b3
·
verified ·
1 Parent(s): 326524a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -39
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=page) # Вернем временно использование экспериментального метода
102
 
 
103
  st.title("GestureGuru")
104
  st.subheader("Russian Sign Language Recognition")
105
  st.markdown("""
106
- <div class="card fade-in">
107
- <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>
108
- </div>
109
- <div class="divider"></div>
110
- <div class="card fade-in">
111
- <h3>Features:</h3>
112
- <ul>
113
- <li>Real-time sign language recognition</li>
114
- <li>Supports multiple gestures</li>
115
- <li>Easy to use interface</li>
116
- </ul>
117
- </div>
118
- <div class="divider"></div>
119
- <div class="card fade-in">
120
- <h3>How it works:</h3>
121
- <ol>
122
- <li>Upload a video or use the camera for live recognition.</li>
123
- <li>The model processes the video and identifies the gestures.</li>
124
- <li>The recognized gestures are displayed as text.</li>
125
- </ol>
126
- </div>
127
- <div class="divider"></div>
128
- <div class="card fade-in">
129
- <h3>Why use this app:</h3>
130
- <ul>
131
- <li>Helps bridge the communication gap between sign language users and others.</li>
132
- <li>Useful for educational purposes and learning sign language.</li>
133
- <li>Enhances accessibility for people with hearing impairments.</li>
134
- </ul>
135
- </div>
136
- """, unsafe_allow_html=True)
137
- st.image("image.webp", caption="Sign Language Recognition", use_column_width=True)
 
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