Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,8 +157,8 @@ def parse_json(inp):
|
|
| 157 |
print(e)
|
| 158 |
return "None","None"
|
| 159 |
elif type(inp)==type({}):
|
| 160 |
-
out1=inp['filename']
|
| 161 |
-
out2=inp['filecontent']
|
| 162 |
return out1,out2
|
| 163 |
def build_space(repo_name,file_name,file_content,access_token=""):
|
| 164 |
try:
|
|
|
|
| 157 |
print(e)
|
| 158 |
return "None","None"
|
| 159 |
elif type(inp)==type({}):
|
| 160 |
+
out1=str(inp['filename'])
|
| 161 |
+
out2=str(inp['filecontent'])
|
| 162 |
return out1,out2
|
| 163 |
def build_space(repo_name,file_name,file_content,access_token=""):
|
| 164 |
try:
|