n0no123 commited on
Commit
8745d31
1 Parent(s): 67b2632

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +1 -3
  2. requirements.txt +1 -2
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import cv2
2
- from matplotlib import pyplot as plt
3
  import gradio as gr
4
 
5
 
@@ -10,10 +9,9 @@ def my_app(img):
10
  analysedData = classifier.detectMultiScale(flipped_image,
11
  minSize=(20, 20))
12
  if len(analysedData) != 0:
13
- return analysedData[0].x
14
  return ("S T O P !")
15
  else:
16
- return analysedData[0][1]
17
 
18
 
19
  gr.interface.Interface(fn=my_app, live=True, inputs=gr.Image(
 
1
  import cv2
 
2
  import gradio as gr
3
 
4
 
 
9
  analysedData = classifier.detectMultiScale(flipped_image,
10
  minSize=(20, 20))
11
  if len(analysedData) != 0:
 
12
  return ("S T O P !")
13
  else:
14
+ return ("You're good to go :)")
15
 
16
 
17
  gr.interface.Interface(fn=my_app, live=True, inputs=gr.Image(
requirements.txt CHANGED
@@ -1,3 +1,2 @@
1
  opencv-python
2
- matplotlib
3
- gradio
 
1
  opencv-python
2
+ gradio