-
Notifications
You must be signed in to change notification settings - Fork 3
/
txtToAsl.py
89 lines (88 loc) · 3.3 KB
/
txtToAsl.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import streamlit as st
from PIL import Image
def txtToAsl():
st.title("ASL Practice :pencil:")
st.subheader("Practice your ASL skills with us!")
user_input = st.text_input("Enter your input").upper()
if user_input == 'A':
image = Image.open('images/letter_A.jpeg')
st.image(image, caption = 'A')
elif user_input == 'B':
image = Image.open('images/letter_B.jpeg')
st.image(image, caption = 'B')
elif user_input == 'C':
image = Image.open('images/letter_C.jpeg')
st.image(image, caption = 'C')
elif user_input == 'D':
image = Image.open('images/letter_D.jpeg')
st.image(image, caption = 'D')
elif user_input == 'E':
image = Image.open('images/letter_E.jpeg')
st.image(image, caption = 'E')
elif user_input == 'F':
image = Image.open('images/letter_F.jpeg')
st.image(image, caption = 'F')
elif user_input == 'G':
image = Image.open('images/letter_G.jpeg')
st.image(image, caption = 'G')
elif user_input == 'H':
image = Image.open('images/letter_H.jpeg')
st.image(image, caption = 'H')
elif user_input == 'I':
image = Image.open('images/letter_I.jpeg')
st.image(image, caption = 'I')
elif user_input == 'J':
image = Image.open('images/letter_J.jpeg')
st.image(image, caption = 'J')
elif user_input == 'K':
image = Image.open('images/letter_K.jpeg')
st.image(image, caption = 'K')
elif user_input == 'L':
image = Image.open('images/letter_L.jpeg')
st.image(image, caption = 'L')
elif user_input == 'M':
image = Image.open('images/letter_M.jpeg')
st.image(image, caption = 'M')
elif user_input == 'N':
image = Image.open('images/letter_N.jpeg')
st.image(image, caption = 'N')
elif user_input == 'O':
image = Image.open('images/letter_O.jpeg')
st.image(image, caption = 'O')
elif user_input == 'P':
image = Image.open('images/letter_P.jpeg')
st.image(image, caption = 'P')
elif user_input == 'Q':
image = Image.open('images/letter_Q.jpeg')
st.image(image, caption = 'Q')
elif user_input == 'R':
image = Image.open('images/letter_R.jpeg')
st.image(image, caption = 'R')
elif user_input == 'S':
image = Image.open('images/letter_S.jpeg')
st.image(image, caption = 'S')
elif user_input == 'T':
image = Image.open('images/letter_T.jpeg')
st.image(image, caption = 'T')
elif user_input == 'U':
image = Image.open('images/letter_U.jpeg')
st.image(image, caption = 'U')
elif user_input == 'V':
image = Image.open('images/letter_V.jpeg')
st.image(image, caption = 'V')
elif user_input == 'W':
image = Image.open('images/letter_W.jpeg')
st.image(image, caption = 'W')
elif user_input == 'X':
image = Image.open('images/letter_X.jpeg')
st.image(image, caption = 'X')
elif user_input == 'Y':
image = Image.open('images/letter_Y.jpeg')
st.image(image, caption = 'Y')
elif user_input == 'Z':
image = Image.open('images/letter_Z.jpeg')
st.image(image, caption = 'Z')
elif user_input == '':
st.write("")
else:
st.write("invalid input")