Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,8 @@ import os
|
|
| 5 |
from openai import OpenAI
|
| 6 |
|
| 7 |
# OpenAI API Key aus Environment Variable oder Hugging Face Secret
|
| 8 |
-
client = OpenAI(api_key="
|
|
|
|
| 9 |
|
| 10 |
# --- Funktion für Bot-Antwort ---
|
| 11 |
def response(user_message, history):
|
|
|
|
| 5 |
from openai import OpenAI
|
| 6 |
|
| 7 |
# OpenAI API Key aus Environment Variable oder Hugging Face Secret
|
| 8 |
+
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
|
| 9 |
+
|
| 10 |
|
| 11 |
# --- Funktion für Bot-Antwort ---
|
| 12 |
def response(user_message, history):
|