alexkueck commited on
Commit
af937f5
1 Parent(s): d938ebb

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import os, sys, json
2
+ from openai import OpenAI
3
+ import gradio as gr
4
+
5
+
6
+
7
+ # Schnittstellen hinzubinden und OpenAI Key holen aus den Secrets
8
+ client = OpenAI(
9
+ api_key=os.getenv("OPENAI_API_KEY"), # this is also the default, it can be omitted
10
+ )