Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -683,17 +683,18 @@ def save_memory(purpose, history):
|
|
| 683 |
return out_box
|
| 684 |
|
| 685 |
def valid_list(inp):
|
|
|
|
| 686 |
inp_typ = type(inp)
|
| 687 |
print(inp_typ)
|
| 688 |
-
if inp_typ==
|
| 689 |
print("STRING")
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
|
| 698 |
|
| 699 |
def recall_memory(inp,history):
|
|
|
|
| 683 |
return out_box
|
| 684 |
|
| 685 |
def valid_list(inp):
|
| 686 |
+
out_list=[]
|
| 687 |
inp_typ = type(inp)
|
| 688 |
print(inp_typ)
|
| 689 |
+
if inp_typ==type(str(inp)):
|
| 690 |
print("STRING")
|
| 691 |
+
new_list=inp.split("[")[1].split("]",-1)[0]
|
| 692 |
+
print(new_list)
|
| 693 |
+
print(type(new_list))
|
| 694 |
+
for ea in new_list.split(","):
|
| 695 |
+
out_list.append(ea)
|
| 696 |
+
print(out_list)
|
| 697 |
+
print(type(out_list))
|
| 698 |
|
| 699 |
|
| 700 |
def recall_memory(inp,history):
|