Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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 |
+
)
|