AamirMalik commited on
Commit
1cd6b31
Β·
verified Β·
1 Parent(s): c1d2336

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -13
app.py CHANGED
@@ -38,11 +38,25 @@ def main():
38
  st.header("Menu")
39
  col1 = st.columns(1)[0]
40
  with col1:
41
- st.button("πŸ“– About Us", use_container_width=True)
42
- st.button("πŸ“ž Contact Us", use_container_width=True)
43
- st.button("πŸ’¬ Feedback", use_container_width=True)
 
 
44
 
45
- tab1, tab2, tab3, tab4 = st.tabs(["Image Load", "Take Picture", "Live ASL", "Text2Sign"])
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  with tab1:
48
  st.subheader("πŸ“Έ Image Load")
@@ -79,15 +93,6 @@ def main():
79
  time.sleep(1)
80
  cap.release()
81
 
82
- with tab4:
83
- st.subheader("πŸ“ Text2Sign")
84
- text_input = st.text_area("Enter text to generate sign language (Max 200 characters)", max_chars=200)
85
- if st.button("Generate Sign"):
86
- if text_input:
87
- st.video("https://www.w3schools.com/html/mov_bbb.mp4") # Placeholder URL
88
- else:
89
- st.warning("Please enter some text.")
90
-
91
  # Ensure proper indentation
92
  if __name__ == "__main__":
93
  main()
 
38
  st.header("Menu")
39
  col1 = st.columns(1)[0]
40
  with col1:
41
+ if st.button("πŸ“– About Us", use_container_width=True):
42
+ st.write(
43
+ "Welcome to the Sign Language Translator! Our platform uses advanced AI to help translate American Sign Language (ASL) alphabet gestures in real-time. "
44
+ "This project aims to bridge communication gaps and make sign language more accessible for everyone."
45
+ )
46
 
47
+ if st.button("πŸ“ž Contact Us", use_container_width=True):
48
+ st.write(
49
+ "**Phone:** +1 (555) 987-6543 "
50
+ "**LinkedIn:** [Sign Language Translator](https://linkedin.com) "
51
+ "**Facebook:** [Sign Language Translator](https://facebook.com) "
52
+ "**Instagram:** [@signlanguage.ai](https://instagram.com) "
53
+ "**Email:** contact@signlanguage.ai"
54
+ )
55
+
56
+ if st.button("πŸ’¬ Feedback", use_container_width=True):
57
+ st.text_area("We value your feedback! Please share your thoughts below:")
58
+
59
+ tab1, tab2, tab3 = st.tabs(["Image Load", "Take Picture", "Live ASL"])
60
 
61
  with tab1:
62
  st.subheader("πŸ“Έ Image Load")
 
93
  time.sleep(1)
94
  cap.release()
95
 
 
 
 
 
 
 
 
 
 
96
  # Ensure proper indentation
97
  if __name__ == "__main__":
98
  main()