File size: 373 Bytes
56f0380 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import gradio as gr
def generate_description(property_type, price):
return f"A beautiful {property_type} listed at £{price}. Contact us for a viewing."
gr.Interface(
fn=generate_description,
inputs=[
gr.Textbox(label="Property Type"),
gr.Textbox(label="Price")
],
outputs="text",
title="Property Description Generator"
).launch()
|