File size: 340 Bytes
317c901 1828143 317c901 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
title = "Do you have your helmet on?"
description = """
DETR model finetuned on "anindya64/hardhat" for hard hats detection.
"""
demo = gr.Interface(
fn=greet,
inputs="text",
outputs="text",
title=title,
description=description
)
demo.launch()
|