Download app.py from M0VE/README: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/M0VE/README/resolve/main/app.py
- Command line
-
hf download hf://spaces/M0VE/README/app.py
-
curl -L -o app.py https://huggingface.co/spaces/M0VE/README/resolve/main/app.py
373 Bytes
| 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() | |