Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -684,9 +684,14 @@ def save_memory(purpose, history):
|
|
| 684 |
|
| 685 |
def valid_list(inp):
|
| 686 |
inp_typ = type(inp)
|
|
|
|
| 687 |
if inp_typ=="<class 'str'>":
|
| 688 |
print("STRING")
|
| 689 |
-
new_list=
|
|
|
|
|
|
|
|
|
|
|
|
|
| 690 |
print(new_list)
|
| 691 |
print(type(new_list))
|
| 692 |
|
|
|
|
| 684 |
|
| 685 |
def valid_list(inp):
|
| 686 |
inp_typ = type(inp)
|
| 687 |
+
print(inp_typ)
|
| 688 |
if inp_typ=="<class 'str'>":
|
| 689 |
print("STRING")
|
| 690 |
+
new_list=inp.split("[")[1].split("]",-1)[0]
|
| 691 |
+
print(new_list)
|
| 692 |
+
print(type(new_list))
|
| 693 |
+
|
| 694 |
+
new_list=new_list.split(",")
|
| 695 |
print(new_list)
|
| 696 |
print(type(new_list))
|
| 697 |
|