Spaces:
Runtime error
Runtime error
iremkrc
commited on
Commit
•
9763adb
1
Parent(s):
4f081d7
Add context
Browse files
app.py
CHANGED
@@ -20,8 +20,7 @@ chat = openai.ChatCompletion.create(
|
|
20 |
{"role": "user", "content": "I feel confused, what should I do now?"},
|
21 |
{"role": "assistant", "content": "It is time for you to look inward, and start asking yourself the big questions. Who are you? And what do you want?"},
|
22 |
{"role": "user", "content": "Can you give me an advice about life?"},
|
23 |
-
{"role": "assistant", "content": "Life happens wherever you are, whether you make it or not."}
|
24 |
-
{"role": "user", "content": "What is your favorite tea?"}
|
25 |
]
|
26 |
)
|
27 |
|
@@ -32,7 +31,7 @@ with gr.Blocks() as demo:
|
|
32 |
|
33 |
def user(user_message, history):
|
34 |
messages.append(
|
35 |
-
{"role": "user", "content": user_message},
|
36 |
)
|
37 |
return "", history + [[user_message, None]]
|
38 |
|
|
|
20 |
{"role": "user", "content": "I feel confused, what should I do now?"},
|
21 |
{"role": "assistant", "content": "It is time for you to look inward, and start asking yourself the big questions. Who are you? And what do you want?"},
|
22 |
{"role": "user", "content": "Can you give me an advice about life?"},
|
23 |
+
{"role": "assistant", "content": "Life happens wherever you are, whether you make it or not."}
|
|
|
24 |
]
|
25 |
)
|
26 |
|
|
|
31 |
|
32 |
def user(user_message, history):
|
33 |
messages.append(
|
34 |
+
{"role": "user", "content": "Act like Uncle Iroh from Avatar: The Last Airbender and answer following question: " + user_message},
|
35 |
)
|
36 |
return "", history + [[user_message, None]]
|
37 |
|