Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -31,17 +31,24 @@ def fix_json():
|
|
31 |
if "name:" in line:
|
32 |
out = line.replace("name:",'"name":')
|
33 |
print (out)
|
34 |
-
|
35 |
out = line.replace("modality:",'"modality":')
|
36 |
print (out)
|
37 |
-
|
38 |
out = line.replace("type:",'"type":')
|
39 |
print (out)
|
40 |
-
|
41 |
out = line.replace("subtasks:",'"subtasks":')
|
42 |
print (out)
|
43 |
-
|
44 |
out = line.replace("color:",'"color":')
|
45 |
print (out)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
else: print(line)
|
47 |
fix_json()
|
|
|
31 |
if "name:" in line:
|
32 |
out = line.replace("name:",'"name":')
|
33 |
print (out)
|
34 |
+
elif "modality:" in line:
|
35 |
out = line.replace("modality:",'"modality":')
|
36 |
print (out)
|
37 |
+
elif "type:" in line:
|
38 |
out = line.replace("type:",'"type":')
|
39 |
print (out)
|
40 |
+
elif "subtasks:" in line:
|
41 |
out = line.replace("subtasks:",'"subtasks":')
|
42 |
print (out)
|
43 |
+
elif "color:" in line:
|
44 |
out = line.replace("color:",'"color":')
|
45 |
print (out)
|
46 |
+
elif "hideInModels:" in line:
|
47 |
+
out = line.replace("hideInModels:",'"hideInModels":')
|
48 |
+
print (out)
|
49 |
+
elif "hideInDatasets:" in line:
|
50 |
+
out = line.replace("hideInDatasets:",'"hideInDatasets":')
|
51 |
+
print (out)
|
52 |
+
|
53 |
else: print(line)
|
54 |
fix_json()
|