Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image
|
3 |
import numpy as np
|
|
|
|
|
4 |
|
5 |
# Page config
|
6 |
st.set_page_config(
|
@@ -58,6 +60,16 @@ ul, ol {
|
|
58 |
color: #555;
|
59 |
font-size: 1.1em;
|
60 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
</style>
|
62 |
""", unsafe_allow_html=True)
|
63 |
|
@@ -87,8 +99,8 @@ st.markdown("""
|
|
87 |
<div class="section">
|
88 |
<h3>🧰 How it works</h3>
|
89 |
<ol>
|
90 |
-
<li>
|
91 |
-
<li>The model processes the
|
92 |
<li>Recognized gestures appear as text output</li>
|
93 |
</ol>
|
94 |
</div>
|
@@ -129,3 +141,4 @@ st.markdown("""
|
|
129 |
""", unsafe_allow_html=True)
|
130 |
|
131 |
|
|
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image
|
3 |
import numpy as np
|
4 |
+
import time
|
5 |
+
import random
|
6 |
|
7 |
# Page config
|
8 |
st.set_page_config(
|
|
|
60 |
color: #555;
|
61 |
font-size: 1.1em;
|
62 |
}
|
63 |
+
.prediction-box {
|
64 |
+
text-align: center;
|
65 |
+
font-size: 1.5em;
|
66 |
+
padding: 1rem;
|
67 |
+
border-radius: 12px;
|
68 |
+
background: #fff3e0;
|
69 |
+
color: #e65100;
|
70 |
+
margin-top: 1rem;
|
71 |
+
box-shadow: 0px 4px 12px rgba(0,0,0,0.06);
|
72 |
+
}
|
73 |
</style>
|
74 |
""", unsafe_allow_html=True)
|
75 |
|
|
|
99 |
<div class="section">
|
100 |
<h3>🧰 How it works</h3>
|
101 |
<ol>
|
102 |
+
<li>Use the live camera or upload a gesture frame</li>
|
103 |
+
<li>The model processes the input</li>
|
104 |
<li>Recognized gestures appear as text output</li>
|
105 |
</ol>
|
106 |
</div>
|
|
|
141 |
""", unsafe_allow_html=True)
|
142 |
|
143 |
|
144 |
+
|