| import gradio as gr | |
| from motion_id import create_motion_id | |
| def register_user(name): | |
| motion_id = create_motion_id(name) | |
| return f"Your Motion ID: {motion_id}" | |
| gr.Interface( | |
| fn=register_user, | |
| inputs="text", | |
| outputs="text", | |
| title="Motion ID MVP", | |
| description="Register a user and get a unique Motion ID." | |
| ).launch() |