Inspiration
We were encouraged to follow through with a proposal by a fellow group member for an anime-themed chatbot application that replies to user input and has a set personality of its own making it unique.
What it does
The project displays a GUI application window on the screen that allows users to interact with an anime-inspired chatbot powered by OpenAI's ChatGPT API. Users can input messages in the GUI, and the chatbot responds with generated replies.
How we built it
We began by utilizing the JavaFX framework to bring our design to be visualized on a GUI application window. We then implemented OpenAI's API to deliver responses from ChatGPT to reply to user input within the GUI window.
Challenges we ran into
Upon completing the layout of the JavaFX GUI, we ran into complications with calling OpenAI's API to deliver responses from ChatGPT as we were approaching it with Java instead of Python. Eventually, we put the JavaFX GUI aside and tried to transition the GUI window to Python using Python's Tkinter GUI framework. However, everyone on the team had only been equipped with Apple's new M1 and M2 ARM processors which had no support to properly operate Python's Tkinter framework which was well supported for x86 processors. This resulted in us being temporarily unable to implement ChatGPT into a GUI window in Python or in Java.
Accomplishments that we're proud of
We managed to successfully call OpenAI's API to deliver responses from ChatGPT using Java and JSON (Java API for JSON Processing) instead of the supported API references for Python.
What we learned
We learned how to utilize JSON in the Java API to process JSON data into a valid datatype to be outputted to our GUI application window.
What's next for Waifu Hub
We are looking into the near future to improve the user interface along with implementing greater capabilities of OpenAI's APIs to deliver a much more personal interaction between users and their own unique virtual assistants.
Log in or sign up for Devpost to join the conversation.