Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -688,10 +688,13 @@ def valid_list(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))
|
|
|
688 |
print(inp_typ)
|
689 |
if inp_typ==type(str(inp)):
|
690 |
print("STRING")
|
691 |
+
#new_list = new_list.replace(", ",",").replace(" ,",",")
|
692 |
new_list=inp.split("[")[1].split("]",-1)[0]
|
693 |
print(new_list)
|
694 |
print(type(new_list))
|
695 |
+
|
696 |
for ea in new_list.split(","):
|
697 |
+
ea = ea.strip("'").strip('"')
|
698 |
out_list.append(ea)
|
699 |
print(out_list)
|
700 |
print(type(out_list))
|