OmkarThawakar
initail commit
ed00004
raw
history blame contribute delete
515 Bytes
import gradio as gr
def respond_to_user(image, message):
# Process the image and message here
# For demonstration, I'll just return a simple text response
response = "You said: " + message + ". Thanks for the image!"
return response
iface = gr.Interface(
fn=respond_to_user,
inputs=[gr.Image(), gr.Textbox(label="Your Message")],
outputs=gr.Textbox(),
title="Image and Message Responder",
description="Upload an image and write a message, and get a response!"
)
iface.launch()