import gradio as gr from sample_solution import main as detect_bees badges = """
""" description="""Detect bees in the image""" with gr.Blocks() as block: # gr.Markdown("""![Imgur](https://i.imgur.com/iPZlUa8.png)""") gr.HTML("") gr.Markdown(badges) gr.Markdown(description) with gr.Row(): file_input = gr.Image() file_output = gr.Image() btn = gr.Button(value="Count the number of Bees") btn.click(detect_bees, inputs=[file_input], outputs=[file_output], queue=True) block.queue(concurrency_count=5).launch() # block.queue().launch()