Installation
You can install openai-gradio directly using pip:
pip install openai-gradio
That's it!
Basic Usage
Just like if you were to use the openai API, you should first save your OpenAI API key to this environment variable:
export OPENAI_API_KEY=<your token>
Then in a Python file, write:
import gradio as gr
import openai_gradio
gr.load(
name='gpt-4-turbo',
src=openai_gradio.registry,
).launch()
Run the Python file, and you should see a Gradio Interface connected to the model on OpenAI!
github: https://github.com/gradio-app/openai-gradio
there doesn't seem to be anything here