osheina commited on
Commit
e17d533
·
verified ·
1 Parent(s): 4ed2a8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -20
app.py CHANGED
@@ -14,7 +14,8 @@ st.set_page_config(
14
  st.markdown("""
15
  <style>
16
  body {
17
- background-color: #f8f9fb;
 
18
  }
19
  header {
20
  visibility: hidden;
@@ -26,29 +27,32 @@ section.main > div {
26
  .hero {
27
  text-align: center;
28
  padding: 3rem 2rem;
29
- background: linear-gradient(135deg, #f0f4ff, #e8fcf7);
30
- border-radius: 12px;
31
- box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.05);
 
32
  }
33
  .hero h1 {
34
- font-size: 3em;
35
  margin-bottom: 0.2em;
36
- color: #31333F;
37
  }
38
  .hero p {
39
  font-size: 1.25em;
40
- color: #555;
41
  margin-top: 0.5em;
42
  }
43
  .section {
44
  background-color: white;
45
- border-radius: 10px;
46
- padding: 1.5rem;
47
- margin-bottom: 1.5rem;
48
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
 
 
 
 
49
  }
50
  h3 {
51
- color: #31333F;
52
  }
53
  ul, ol {
54
  color: #555;
@@ -60,7 +64,7 @@ ul, ol {
60
  # --- Hero Section ---
61
  st.markdown("""
62
  <div class="hero">
63
- <h1>GestureGuru</h1>
64
  <p>AI-powered Russian Sign Language Recognition</p>
65
  <p>Enhancing communication through computer vision</p>
66
  </div>
@@ -90,28 +94,27 @@ st.markdown("""
90
  </div>
91
  """, unsafe_allow_html=True)
92
 
93
- # --- Upload block (placeholder) ---
94
  st.markdown("""
95
  <div class="section">
96
  <h3>📷 Try it now</h3>
97
  <p>Upload a frame or short clip for recognition.</p>
98
  """, unsafe_allow_html=True)
99
- uploaded_file = st.file_uploader("Upload an image or video frame", type=["jpg", "jpeg", "png"])
100
  if uploaded_file:
101
  img = Image.open(uploaded_file)
102
  st.image(img, caption="Uploaded frame", use_column_width=True)
103
- st.info("Gesture recognition results will appear here.")
104
  else:
105
- st.warning("Please upload an image to test recognition.")
106
  st.markdown("</div>", unsafe_allow_html=True)
107
 
108
  # --- Contact block ---
109
  st.markdown("""
110
- <div class="section" style="text-align: center;">
111
  <h3>📢 Want to collaborate?</h3>
112
- <p>Email: <a href="mailto:your@email.com">your@email.com</a></p>
113
  </div>
114
  """, unsafe_allow_html=True)
115
 
116
 
117
-
 
14
  st.markdown("""
15
  <style>
16
  body {
17
+ background: linear-gradient(135deg, #e0f2f1, #fce4ec);
18
+ font-family: 'Segoe UI', sans-serif;
19
  }
20
  header {
21
  visibility: hidden;
 
27
  .hero {
28
  text-align: center;
29
  padding: 3rem 2rem;
30
+ background: linear-gradient(90deg, #00c9ff, #92fe9d);
31
+ border-radius: 16px;
32
+ box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
33
+ color: white;
34
  }
35
  .hero h1 {
36
+ font-size: 3.5em;
37
  margin-bottom: 0.2em;
 
38
  }
39
  .hero p {
40
  font-size: 1.25em;
 
41
  margin-top: 0.5em;
42
  }
43
  .section {
44
  background-color: white;
45
+ border-radius: 16px;
46
+ padding: 2rem;
47
+ margin-bottom: 2rem;
48
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
49
+ transition: transform 0.3s ease;
50
+ }
51
+ .section:hover {
52
+ transform: translateY(-5px);
53
  }
54
  h3 {
55
+ color: #212121;
56
  }
57
  ul, ol {
58
  color: #555;
 
64
  # --- Hero Section ---
65
  st.markdown("""
66
  <div class="hero">
67
+ <h1>🔍 GestureGuru</h1>
68
  <p>AI-powered Russian Sign Language Recognition</p>
69
  <p>Enhancing communication through computer vision</p>
70
  </div>
 
94
  </div>
95
  """, unsafe_allow_html=True)
96
 
97
+ # --- Upload block (updated visual style) ---
98
  st.markdown("""
99
  <div class="section">
100
  <h3>📷 Try it now</h3>
101
  <p>Upload a frame or short clip for recognition.</p>
102
  """, unsafe_allow_html=True)
103
+ uploaded_file = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
104
  if uploaded_file:
105
  img = Image.open(uploaded_file)
106
  st.image(img, caption="Uploaded frame", use_column_width=True)
107
+ st.success("🚀 Image uploaded successfully. Gesture recognition will be applied.")
108
  else:
109
+ st.info("Please upload an image to test recognition.")
110
  st.markdown("</div>", unsafe_allow_html=True)
111
 
112
  # --- Contact block ---
113
  st.markdown("""
114
+ <div class="section" style="text-align: center; background: linear-gradient(90deg, #fc466b, #3f5efb); color: white;">
115
  <h3>📢 Want to collaborate?</h3>
116
+ <p>Email: <a style="color: #fff; text-decoration: underline;" href="mailto:your@email.com">your@email.com</a></p>
117
  </div>
118
  """, unsafe_allow_html=True)
119
 
120