File size: 240 Bytes
af937f5
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import os, sys, json
from openai import OpenAI
import gradio as gr



# Schnittstellen hinzubinden und OpenAI Key holen aus den Secrets
client = OpenAI(
  api_key=os.getenv("OPENAI_API_KEY"),  # this is also the default, it can be omitted
)