freinold commited on
Commit
ab1fc7a
1 Parent(s): 6248ce2

Fixed person prototype, ready for hf spaces test.

Browse files
Files changed (3) hide show
  1. .gitignore +3 -0
  2. app-Copy1.py → app-full.py +0 -0
  3. app.py +4 -4
.gitignore CHANGED
@@ -158,3 +158,6 @@ cython_debug/
158
  # and can be added to the global gitignore or merged into this file. For a more nuclear
159
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
  #.idea/
 
 
 
 
158
  # and can be added to the global gitignore or merged into this file. For a more nuclear
159
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
  #.idea/
161
+
162
+ # Custom
163
+ flagged/
app-Copy1.py → app-full.py RENAMED
File without changes
app.py CHANGED
@@ -24,7 +24,7 @@ def detect_dummy(image: Image):
24
 
25
  detectors = {
26
  "Person": detect_person,
27
- "License Plate": detect_license_plate
28
  }
29
 
30
 
@@ -52,6 +52,6 @@ def test_gradio(image):
52
  return anonymized
53
 
54
 
55
- demo = gr.Interface(fn=test_gradio, source="webcam", inputs=gr.Image(type="pil"), outputs=gr.Image(type="pil"))
56
- demo.launch(share=True)
57
- #demo.launch(server_name="localhost", server_port=8080)
 
24
 
25
  detectors = {
26
  "Person": detect_person,
27
+ # "License Plate": detect_license_plate
28
  }
29
 
30
 
 
52
  return anonymized
53
 
54
 
55
+ demo = gr.Interface(fn=test_gradio, inputs=gr.Image(source="webcam", type="pil"), outputs=gr.Image(type="pil"))
56
+ # demo.launch(share=True)
57
+ demo.launch(server_name="localhost", server_port=8080)