Spaces:
Runtime error
Runtime error
Download app.py from Amrith2k6/Photo_Album_Prompt: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/spaces/Amrith2k6/Photo_Album_Prompt/resolve/main/app.py
- Command line
-
hf download hf://spaces/Amrith2k6/Photo_Album_Prompt/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Amrith2k6/Photo_Album_Prompt/resolve/main/app.py
316 Bytes
| import gradio as gr | |
| def greet(name): | |
| return f"Hello {name}!" | |
| with gr.Blocks() as demo: | |
| name = gr.Textbox(label="Name") | |
| output = gr.Textbox(label="Output") | |
| greet_btn = gr.Button("Greet") | |
| greet_btn.click(fn=greet, inputs=name, outputs=output) | |
| demo.launch(server_name="0.0.0.0", server_port=7860) |