gpt4free-original/gui
00randomize00 70df8698c7
Update streamlit_app.py
2023-06-04 21:09:43 +08:00
..
pywebio-gui Update README.md 2023-05-01 12:04:52 +08:00
README.md README.md disclaimers analytic data 2023-05-11 22:44:17 -07:00
__init__.py Merging PR_218 openai_rev package with new streamlit chat app 2023-04-27 20:29:30 -04:00
image1.png Merging PR_218 openai_rev package with new streamlit chat app 2023-04-27 20:29:30 -04:00
image2.png Merging PR_218 openai_rev package with new streamlit chat app 2023-04-27 20:29:30 -04:00
query_methods.py Feat: add proxy settings in GUI and library. 2023-04-30 13:19:46 +08:00
streamlit_app.py Update streamlit_app.py 2023-06-04 21:09:43 +08:00
streamlit_chat_app.py added option to remove conversations 2023-05-01 15:44:58 -04:00

README.md

gpt4free gui

This code provides a Graphical User Interface (GUI) for gpt4free. Users can ask questions and get answers from GPT-4 API's, utilizing multiple API implementations. The project contains two different Streamlit applications: streamlit_app.py and streamlit_chat_app.py.

In addition, a new GUI script specifically implemented using PyWebIO has been added and can be found in the pywebio-gui folder. If there are errors with the Streamlit version, you can try using the PyWebIO version instead

Installation

  1. Clone the repository.
  2. Install the required dependencies with: pip install -r requirements.txt.
  3. To use streamlit_chat_app.py, note that it depends on a pull request (PR #24) from the https://github.com/AI-Yash/st-chat/ repository, which may change in the future. The current dependency library can be found at https://github.com/AI-Yash/st-chat/archive/refs/pull/24/head.zip.

Analytics Disclaimer

The streamlit browser app collects heavy analytics even when running locally. This includes events for every page load, form submission including metadata on queries (like length), browser and client information including host ips. These are all transmitted to a 3rd party analytics group, Segment.com.

Usage

Choose one of the Streamlit applications to run:

streamlit_app.py

This application provides a simple interface for asking GPT-4 questions and receiving answers.

To run the application:

run:

streamlit run gui/streamlit_app.py

image

preview:

image

streamlit_chat_app.py

This application provides a chat-like interface for asking GPT-4 questions and receiving answers. It supports multiple query methods, and users can select the desired API for their queries. The application also maintains a conversation history.

To run the application:

streamlit run streamlit_chat_app.py

image

preview:

image

Contributing

Feel free to submit pull requests, report bugs, or request new features by opening issues on the GitHub repository.

Bug

There is a bug in streamlit_chat_app.py right now that I haven't pinpointed yet, probably is really simple but havent had the time to look for it. Whenever you open a new conversation or access an old conversation it will only start prompt-answering after the second time you input to the text input, other than that, everything else seems to work accordingly.

License

This project is licensed under the MIT License.