Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- app.py +12 -0
- bin/detect-image +0 -0
- packages.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
def run(input_image):
|
| 5 |
+
output = subprocess.check_output("bin/detect-image")
|
| 6 |
+
return output.decode("utf-8")
|
| 7 |
+
|
| 8 |
+
gr.Interface(
|
| 9 |
+
fn=run,
|
| 10 |
+
inputs=gr.Image("pil"),
|
| 11 |
+
outputs=gr.Textbox(),
|
| 12 |
+
).launch()
|
bin/detect-image
ADDED
|
Binary file (306 kB). View file
|
|
|
packages.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
libopencv-dev
|