Just sharing an app I built recently using Streamlit. It’s a simple chatbot that uses OpenAI API to get responses from GPT LLMs. It is written completely in Python.
This is a multipage app where new pages are created (and removed) dynamically. Since I’ve seen in my searches that this is a topic people tend to be interested in when it comes to Streamlit, I though it could be useful for other if I shared my code.
Here are some of the features:
Speech recognition and text to voice: Interact with GPT by voice
Web UI (streamlit)
Add/remove conversations dynamically
Automatic/editable conversation summary title
Fully configurable
Support for multiple GPT LLMs
Control over the parameters passed to the OpenAI API, with (hopefully) sensible defaults
Ability to pass base directives to the LLM
E.g., to make it adopt a persona, but you decide which directived to pass
Dynamically modifiable AI parameters in each chat separately
Terminal UI (for a more “Wake up, Neo” experience")
OpenAI API key is never stored on disk
This project’s main purpose is to serve as a learning exercise for me, as well as a tool for and experimenting with OpenAI API, GPT LLMs and Streamlit. While it does not claim to be the best or more robust OpenAI-powered chatbot out there, it does aim to have a friendly user interface and to be easy to use and configure.
The source code is available on GitHub too. Feel free to open issues or submit pull requests if you find a bug or have a suggestion.
Last but not least: this project is not affiliated with OpenAI in any way.
It has been a very pleasant experience to build an UI using Streamlit, by the way. I came across it by chance about two weeks ago after searching for “package to create python apps quickly” (or something along these lines), and it has indeed been a quite smooth process. Kudos to the team.
Update with new features, most prominently voice chat in the streamlit app .
Take a look at the project’s [GitHub page] for further information on installation and usage and have fun!
PyRobBot is a python package that uses OpenAI’s GPT large language models (LLMs) to implement a fully configurable personal assistant that, on top of the traditional chatbot interface, can also speak and listen to you using AI-generated human-like voices.
Features
Features include, but are not limited to:
Voice Chat
Continuous voice input and output
No need to press a button: the assistant will keep listening until you stop talking
Internet access: The assistent will search the web to find the answers it doesn’t have in its training data
E.g. latest news, current events, weather forecasts, etc.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.