Spaces:
Sleeping
Sleeping
File size: 339 Bytes
79c356d 5b9d41b 79c356d 5b9d41b 79c356d 5b9d41b 79c356d |
1 2 3 4 5 6 7 8 9 10 11 12 |
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() |