Created a handle_prompt() function in main.py to handle any task-specific prompt given by the user.
For example: if I say “Play …” or “Set a timer of …” then it will recognize this specific pattern and handle those actions perfectly, and if it’s something else than the AI will just answer it.
It’s scalable, so I can add more features in the future, such as “Definition of” or idk (if you have any ideas lemme know in the comments)
Created a timer.py file which handles the timer feature, which is sort of complicated but now works (it displays on-screen in real time, which is pretty cool)
All in all, main.py is now very clean and readable.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.