A Python Streamlit application to test OpenAI's GPT-4.1 model series via OpenAI API, allowing you to test and compare different model variants with a user-friendly and simple interface.
streamlit run app.py
Here’s how you can get started:
Open your terminal (or Command Prompt on Windows) and navigate to your project directory. Then run:
python -m venv gpt4_1_env
Activate it by running:
On Windows:
gpt4_1_env\Scripts\activate
On macOS/Linux:
source gpt4_1_env/bin/activate
For more detailed cover up, learn my post about Python virtual environment.
With your virtual environment activated, install Streamlit and OpenAI Python SDK using pip
:
pip install streamlit openai
This will install the Streamlit framework, which we use to build our interactive web app, and the OpenAI package, which is required to interact with the OpenAI API.
Read the full explanation and tutorial on Build a Streamlit App to Test OpenAI’s GPT-4.1 Models.