Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ def parse_json(inp):
|
|
145 |
name_file=inp.find(',', start_file)
|
146 |
out1 = inp[start_file:name_file].strip("''").strip('""').strip("./")
|
147 |
end_file=inp.find('filecontent') + 13
|
148 |
-
out2 = inp[end_file:-1].strip("''").strip('""').format()
|
149 |
#out1=inp.split('"filename":')[1]
|
150 |
#out_json=json.loads([inp][0])
|
151 |
#out1=str(out_json['filename'])
|
|
|
145 |
name_file=inp.find(',', start_file)
|
146 |
out1 = inp[start_file:name_file].strip("''").strip('""').strip("./")
|
147 |
end_file=inp.find('filecontent') + 13
|
148 |
+
out2 = inp[end_file:-1].strip("''").strip('""').strip("{}").format()
|
149 |
#out1=inp.split('"filename":')[1]
|
150 |
#out_json=json.loads([inp][0])
|
151 |
#out1=str(out_json['filename'])
|