Spaces:
Runtime error
Runtime error
kwabs22
commited on
Commit
·
463b559
1
Parent(s):
b13f95f
Refactor Proto Assist accordion to absorb mess
Browse files
app.py
CHANGED
@@ -344,7 +344,7 @@ def show_elements_json_input(json_input):
|
|
344 |
outputs.append(media)
|
345 |
|
346 |
# New developernotes field
|
347 |
-
developernotes = gr.Textbox(label="
|
348 |
outputs.append(developernotes)
|
349 |
|
350 |
def update_json(*current_values):
|
@@ -356,7 +356,8 @@ def show_elements_json_input(json_input):
|
|
356 |
"events": json.loads(current_values[i*5 + 1]),
|
357 |
"choices": json.loads(current_values[i*5 + 2]),
|
358 |
"transitions": json.loads(current_values[i*5 + 3]),
|
359 |
-
"media": json.loads(current_values[i*5 + 4]) # New media field
|
|
|
360 |
}
|
361 |
updated_data["masterlocation1"]["end"] = masterlocation1["end"]
|
362 |
return json.dumps(updated_data, indent=2)
|
|
|
344 |
outputs.append(media)
|
345 |
|
346 |
# New developernotes field
|
347 |
+
developernotes = gr.Textbox(label="developernotes", value=json.dumps(details.get('developernotes', [])), interactive=True)
|
348 |
outputs.append(developernotes)
|
349 |
|
350 |
def update_json(*current_values):
|
|
|
356 |
"events": json.loads(current_values[i*5 + 1]),
|
357 |
"choices": json.loads(current_values[i*5 + 2]),
|
358 |
"transitions": json.loads(current_values[i*5 + 3]),
|
359 |
+
"media": json.loads(current_values[i*5 + 4]), # New media field
|
360 |
+
"developernotes": json.loads(current_values[i*5 + 5])
|
361 |
}
|
362 |
updated_data["masterlocation1"]["end"] = masterlocation1["end"]
|
363 |
return json.dumps(updated_data, indent=2)
|