testRW / app.py
lakshya-raj's picture
v2.0.1-test model
5b9d41b
raw
history blame contribute delete
339 Bytes
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()