tallwhitestck commited on
Commit
5253a31
1 Parent(s): 9c22ad8

reorganized file system

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import cv2
2
  from tensorflow.keras.models import load_model
3
  import matplotlib.pyplot as plt
@@ -21,14 +22,20 @@ def recog(img):
21
 
22
  title = "ASL Fingerspelling Recognition"
23
  desc = ""
24
- input = gr.inputs.Image(type="pil", source="webcam")
 
 
25
  # output = gr.outputs.HTML(label="")
26
- output = gr.outputs.Label(num_top_classes=5)
 
 
27
  # output = "text"
28
  examples = [
29
- ["B_test.jpg"],
30
- ["C_test.jpg"],
31
- ["Y_test.jpg"]
 
 
32
  ]
33
 
34
  iface = gr.Interface(
 
1
+ from cProfile import label
2
  import cv2
3
  from tensorflow.keras.models import load_model
4
  import matplotlib.pyplot as plt
 
22
 
23
  title = "ASL Fingerspelling Recognition"
24
  desc = ""
25
+ input = [
26
+ gr.inputs.Image(type="pil", source="webcam", label="Image")
27
+ ]
28
  # output = gr.outputs.HTML(label="")
29
+ output = [
30
+ gr.outputs.Label(label="")
31
+ ]
32
  # output = "text"
33
  examples = [
34
+ ["images/B_test.jpg"],
35
+ ["images/C_test.jpg"],
36
+ ["images/L_test.jpg"],
37
+ ["images/R_test.jpg"],
38
+ ["images/Y_test.jpg"]
39
  ]
40
 
41
  iface = gr.Interface(
images/A_test.jpg ADDED
B_test.jpg → images/B_test.jpg RENAMED
File without changes
C_test.jpg → images/C_test.jpg RENAMED
File without changes
images/D_test.jpg ADDED
images/E_test.jpg ADDED
images/F_test.jpg ADDED
images/G_test.jpg ADDED
images/H_test.jpg ADDED
images/I_test.jpg ADDED
images/J_test.jpg ADDED
images/K_test.jpg ADDED
images/L_test.jpg ADDED
images/M_test.jpg ADDED
images/N_test.jpg ADDED
images/O_test.jpg ADDED
images/P_test.jpg ADDED
images/Q_test.jpg ADDED
images/R_test.jpg ADDED
images/S_test.jpg ADDED
images/T_test.jpg ADDED
images/U_test.jpg ADDED
images/V_test.jpg ADDED
images/W_test.jpg ADDED
images/X_test.jpg ADDED
Y_test.jpg → images/Y_test.jpg RENAMED
File without changes
images/Z_test.jpg ADDED
images/nothing_test.jpg ADDED
images/space_test.jpg ADDED