Spaces:
Sleeping
Sleeping
File size: 703 Bytes
7929a6a 6922e3f 7929a6a 6922e3f 7929a6a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import gradio as gr
from task_agent import agent
with gr.Blocks(theme="soft") as demo:
gr.Markdown("## π
Deadline Manager AI")
gr.Markdown("Add tasks and get smart deadline suggestions with reminders")
with gr.Row():
name = gr.Textbox(label="Task Name")
email = gr.Textbox(label="Your Email")
# Phone input removed
description = gr.Textbox(label="Task Description", lines=3)
submit_btn = gr.Button("π§ Get Deadline Suggestion")
output = gr.Markdown()
submit_btn.click(
fn=agent.add_task,
inputs=[name, description, email], # Removed phone
outputs=output
)
if __name__ == "__main__":
demo.launch() |