Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
start3406
/
llm-api
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
46fd86d
llm-api
/
app.py
start3406
Create app.py
46fd86d
verified
about 1 year ago
raw
Copy download link
history
blame
149 Bytes
import
gradio
as
gr
import
os
from
openai
import
OpenAI
OPENAI_API_KEY = os.getenv(
'OPENAI_API_KEY'
)
openai_client = OpenAI(api_key=OPENAI_API_KEY)