Spaces:
Running
Running
Fixed person prototype, ready for hf spaces test.
Browse files- .gitignore +3 -0
- app-Copy1.py → app-full.py +0 -0
- 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",
|
56 |
-
demo.launch(share=True)
|
57 |
-
|
|
|
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)
|