Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,10 @@ from openai import OpenAI
|
|
| 6 |
# Initialisiere OpenAI-Client mit API Key
|
| 7 |
client = OpenAI(api_key=os.getenv("openai"))
|
| 8 |
|
|
|
|
|
|
|
| 9 |
conversation_history = []
|
| 10 |
-
model_name = "gpt-
|
| 11 |
|
| 12 |
def enhanced_chat_response(user_input, max_tokens, temperature, top_p):
|
| 13 |
if not user_input.strip():
|
|
|
|
| 6 |
# Initialisiere OpenAI-Client mit API Key
|
| 7 |
client = OpenAI(api_key=os.getenv("openai"))
|
| 8 |
|
| 9 |
+
print("Gradio version:", gr.__version__)
|
| 10 |
+
|
| 11 |
conversation_history = []
|
| 12 |
+
model_name = "gpt-3.5-turbo"
|
| 13 |
|
| 14 |
def enhanced_chat_response(user_input, max_tokens, temperature, top_p):
|
| 15 |
if not user_input.strip():
|