rbanfield commited on
Commit
671307d
·
1 Parent(s): 5eef2ca

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. app.py +12 -0
  2. bin/detect-image +0 -0
  3. 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