Spaces:
Runtime error
Runtime error
kwabs22
commited on
Commit
·
f09bd3c
1
Parent(s):
463b559
Refactor Proto Assist accordion to absorb mess
Browse files
app.py
CHANGED
|
@@ -347,9 +347,11 @@ def show_elements_json_input(json_input):
|
|
| 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):
|
| 351 |
updated_data = {"masterlocation1": {}}
|
| 352 |
locations = [loc for loc in masterlocation1.keys() if loc != 'end']
|
|
|
|
| 353 |
for i, location in enumerate(locations):
|
| 354 |
updated_data["masterlocation1"][location] = {
|
| 355 |
"description": current_values[i*5],
|
|
|
|
| 347 |
developernotes = gr.Textbox(label="developernotes", value=json.dumps(details.get('developernotes', [])), interactive=True)
|
| 348 |
outputs.append(developernotes)
|
| 349 |
|
| 350 |
+
print(outputs)
|
| 351 |
def update_json(*current_values):
|
| 352 |
updated_data = {"masterlocation1": {}}
|
| 353 |
locations = [loc for loc in masterlocation1.keys() if loc != 'end']
|
| 354 |
+
print(locations)
|
| 355 |
for i, location in enumerate(locations):
|
| 356 |
updated_data["masterlocation1"][location] = {
|
| 357 |
"description": current_values[i*5],
|