Spaces:
Sleeping
Sleeping
import gradio as gr | |
from roboflow import Roboflow | |
rf = Roboflow(api_key="20JY79Ic1PHKNgDjeaJn") | |
project = rf.workspace().project("image_crop") | |
model = project.version(2).model | |
def predict(url): | |
return model.predict(url, confidence=40, overlap=30).json() | |
iface = gr.Interface(fn=predict, inputs="text", outputs="text") | |
iface.launch() |