Spaces:
Sleeping
Sleeping
ww commited on
Commit ·
6be832d
1
Parent(s): 69dc33b
system_prompt
Browse files
app.py
CHANGED
|
@@ -23,10 +23,10 @@ def generate_response(
|
|
| 23 |
temperature,
|
| 24 |
top_p,
|
| 25 |
):
|
| 26 |
-
if type(
|
| 27 |
-
history =
|
| 28 |
-
print("
|
| 29 |
-
|
| 30 |
print('=====================')
|
| 31 |
print(prompt)
|
| 32 |
print(history)
|
|
|
|
| 23 |
temperature,
|
| 24 |
top_p,
|
| 25 |
):
|
| 26 |
+
if type(system_prompt) == list:
|
| 27 |
+
history = system_prompt
|
| 28 |
+
print("system_prompt as history")
|
| 29 |
+
system_prompt = "i'm a friendly robot"
|
| 30 |
print('=====================')
|
| 31 |
print(prompt)
|
| 32 |
print(history)
|