Signuppage8 / app.py
nagasurendra's picture
Update app.py
e05dec2 verified
raw
history blame contribute delete
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()