ckcl commited on
Commit
f6392db
·
verified ·
1 Parent(s): b45fc62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -43
app.py CHANGED
@@ -1,45 +1,3 @@
1
- Hugging Face's logo
2
- Hugging Face
3
- Models
4
- Datasets
5
- Spaces
6
- Community
7
- Docs
8
- Pricing
9
-
10
-
11
-
12
- Spaces:
13
-
14
- ckcl
15
- /
16
- dnn_space
17
-
18
-
19
- like
20
- 0
21
-
22
- App
23
- Files
24
- Community
25
- Settings
26
- dnn_space
27
- /
28
- app.py
29
-
30
- ckcl's picture
31
- ckcl
32
- Upload 12 files
33
- 2c82790
34
- verified
35
- about 1 month ago
36
- raw
37
-
38
- Copy download link
39
- history
40
- blame
41
-
42
- 9.32 kB
43
  import gradio as gr
44
  import torch
45
  from transformers import ViTForImageClassification, ViTImageProcessor
@@ -303,4 +261,4 @@ with gr.Blocks(title="Driver Drowsiness Detection") as demo:
303
  image_button.click(fn=process_frame, inputs=image_input, outputs=image_output)
304
 
305
  if __name__ == "__main__":
306
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import torch
3
  from transformers import ViTForImageClassification, ViTImageProcessor
 
261
  image_button.click(fn=process_frame, inputs=image_input, outputs=image_output)
262
 
263
  if __name__ == "__main__":
264
+ demo.launch()