Spaces:
Sleeping
Sleeping
ww commited on
Commit ·
d10e90d
1
Parent(s): 8bcebd6
to list
Browse files
app.py
CHANGED
|
@@ -26,14 +26,14 @@ def generate_response(
|
|
| 26 |
):
|
| 27 |
print('=====================')
|
| 28 |
print(type(history))
|
| 29 |
-
|
| 30 |
try:
|
| 31 |
-
|
| 32 |
except ValueError:
|
| 33 |
-
print("system_prompt not a
|
| 34 |
|
| 35 |
-
if isinstance(
|
| 36 |
-
history =
|
| 37 |
print("system_prompt as history")
|
| 38 |
else:
|
| 39 |
print(type(system_prompt))
|
|
|
|
| 26 |
):
|
| 27 |
print('=====================')
|
| 28 |
print(type(history))
|
| 29 |
+
listObject = ""
|
| 30 |
try:
|
| 31 |
+
listObject = list(system_prompt)
|
| 32 |
except ValueError:
|
| 33 |
+
print("system_prompt not a list")
|
| 34 |
|
| 35 |
+
if isinstance(listObject,list):
|
| 36 |
+
history = listObject
|
| 37 |
print("system_prompt as history")
|
| 38 |
else:
|
| 39 |
print(type(system_prompt))
|