Spaces:
Build error
Build error
Download app.py from nagasurendra/Signuppage8: direct link, hf CLI and curl.
- Browser
- Download file 850 Bytes
-
https://huggingface.co/spaces/nagasurendra/Signuppage8/resolve/main/app.py
- Command line
-
hf download hf://spaces/nagasurendra/Signuppage8/app.py
-
curl -L -o app.py https://huggingface.co/spaces/nagasurendra/Signuppage8/resolve/main/app.py
850 Bytes
| import gradio as gr | |
| # Function to handle the signup form submission | |
| def signup(name, email, password): | |
| # Here you can add logic to store user data in a database | |
| return f"Signup successful for {name} with email {email}" | |
| # Create the Gradio interface | |
| with gr.Blocks() as demo: | |
| with gr.Row(): | |
| gr.Markdown("### Signup Page") | |
| with gr.Row(): | |
| name_input = gr.Textbox(label="Name", placeholder="Enter your name") | |
| with gr.Row(): | |
| email_input = gr.Textbox(label="Email", placeholder="Enter your email") | |
| with gr.Row(): | |
| password_input = gr.Textbox(label="Password", placeholder="Enter your password", type="password") | |
| with gr.Row(): | |
| submit_button = gr.Button("Sign Up") | |
| submit_button.click(signup, inputs=[name_input, email_input, password_input], outputs=gr.Textbox()) | |
| demo.launch() | |