Spaces:
Runtime error
Runtime error
Update app.py
Browse files80 unmodified lines8182838485868788899091929394959697989910080 unmodified lines</script>"""# Define the Gradio interfacedemo = gr.Interface(fn=detect_object,inputs=gr.Image(label="Upload an Image", type="pil"),outputs=[gr.Image(label="Processed Image", type="pil"),gr.Audio(label="Generated Audio")],title="Multi-Object Detection with Audio Narration",description=description_text,)# Add the Google Analytics script to the Gradio interfacedemo.add_component(gr.HTML(ga_script))# Launch the interfacedemo.launch()80 unmodified lines8182838485868788899091929394959697989910010110280 unmodified lines</script>"""# Use Gradio Blocks to organize the layoutwith gr.Blocks() as demo:gr.HTML(ga_script) # Injecting Google Analytics scriptgr.Markdown(description_text) # Adding the description as Markdown# Define the Interface components within Blocksgr.Interface(fn=detect_object,inputs=gr.Image(label="Upload an Image", type="pil"),outputs=[gr.Image(label="Processed Image", type="pil"),gr.Audio(label="Generated Audio")],title="Multi-Object Detection with Audio Narration",)# Launch the Blocks interfacedemo.launch()
app.py+18-16