Spaces:
Sleeping
Sleeping
| 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() |