Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -385,8 +385,8 @@ def format_json(inp):
|
|
385 |
new_json=[]
|
386 |
print("FORMATTING:::")
|
387 |
for i,line in enumerate(inp):
|
388 |
-
|
389 |
-
print(f'test:: {line}')
|
390 |
if "keywords" in line and ":" in line:
|
391 |
print (line)
|
392 |
if "title" in line and ":" in line:
|
|
|
385 |
new_json=[]
|
386 |
print("FORMATTING:::")
|
387 |
for i,line in enumerate(inp):
|
388 |
+
line = line.strip()
|
389 |
+
#print(f'test:: {line}')
|
390 |
if "keywords" in line and ":" in line:
|
391 |
print (line)
|
392 |
if "title" in line and ":" in line:
|