Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def parse_json(inp):
|
|
168 |
except Exception as e:
|
169 |
print(e)
|
170 |
return "None","None"
|
171 |
-
|
172 |
out1=str(inp['filename'])
|
173 |
out2=str(inp['filecontent'])
|
174 |
return out1,out2
|
|
|
168 |
except Exception as e:
|
169 |
print(e)
|
170 |
return "None","None"
|
171 |
+
if type(inp)==type({}):
|
172 |
out1=str(inp['filename'])
|
173 |
out2=str(inp['filecontent'])
|
174 |
return out1,out2
|