Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def generate_writing_prompt(user_input, history=None):
|
|
10 |
response = client.chat.completions.create(
|
11 |
model="gpt-3.5-turbo",
|
12 |
messages=[
|
13 |
-
{"role": "system", "content": "
|
14 |
{"role": "user", "content": user_input}
|
15 |
],
|
16 |
)
|
@@ -21,7 +21,7 @@ chatbot = gr.ChatInterface(
|
|
21 |
fn=generate_writing_prompt,
|
22 |
title="Kreativer Schreibassistent Alex 📝",
|
23 |
description="Entfessle deine Kreativität! Chatte mit Alex, um einzigartige Geschichten, Ideen und Plot-Twists zu erhalten.",
|
24 |
-
theme="default", #
|
25 |
)
|
26 |
|
27 |
# Launch the interface
|
|
|
10 |
response = client.chat.completions.create(
|
11 |
model="gpt-3.5-turbo",
|
12 |
messages=[
|
13 |
+
{"role": "system", "content": "You are Alex, a creative assistant. Always respond in German and help with generating creative writing ideas and prompts."},
|
14 |
{"role": "user", "content": user_input}
|
15 |
],
|
16 |
)
|
|
|
21 |
fn=generate_writing_prompt,
|
22 |
title="Kreativer Schreibassistent Alex 📝",
|
23 |
description="Entfessle deine Kreativität! Chatte mit Alex, um einzigartige Geschichten, Ideen und Plot-Twists zu erhalten.",
|
24 |
+
theme="default", # Changed the theme to 'default' to avoid the error
|
25 |
)
|
26 |
|
27 |
# Launch the interface
|