rbanfield's picture
bug fix
025f865
raw
history blame
345 Bytes
import subprocess
import gradio as gr
def run(input_image):
output = subprocess.check_output(["chmod", "a+x", "bin/detect-image"])
output = subprocess.check_output("bin/detect-image")
return output.decode("utf-8")
gr.Interface(
fn=run,
inputs=gr.Image(type="pil", label="Input Image"),
outputs=gr.Textbox(),
).launch()