kwabs22 commited on
Commit
34d7bf7
·
1 Parent(s): 8e60bdf

Refactor Proto Assist accordion to absorb mess

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -363,13 +363,13 @@ def show_elements_json_input(json_input):
363
  "developernotes": json.loads(current_values[i*num_current_unique_fields + 5])
364
  }
365
  updated_data["masterlocation1"]["end"] = masterlocation1["end"]
366
- return json.dumps(updated_data, indent=2) #json.dumps(updated_data, default=lambda o: o.__dict__, indent=2)
367
 
368
  update_button = gr.Button("Update JSON")
369
  #json_output = gr.Textbox(label="Updated JSON", lines=10)
370
- json_output = gr.Code(lines=10) #file name error????
371
 
372
- update_button.click(update_json, inputs=outputs, outputs=[json_output]) #, json_output_code]) #file name error????
373
 
374
  return outputs + [update_button, json_output] #, json_output_code]
375
 
 
363
  "developernotes": json.loads(current_values[i*num_current_unique_fields + 5])
364
  }
365
  updated_data["masterlocation1"]["end"] = masterlocation1["end"]
366
+ return json.dumps(updated_data, default=lambda o: o.__dict__, indent=2) #json.dumps(updated_data, default=lambda o: o.__dict__, indent=2)
367
 
368
  update_button = gr.Button("Update JSON")
369
  #json_output = gr.Textbox(label="Updated JSON", lines=10)
370
+ json_output = gr.Code(label="Updated JSON", lines=10) #file name error????
371
 
372
+ update_button.click(update_json, inputs=outputs, outputs=json_output) #, json_output_code]) #file name error????
373
 
374
  return outputs + [update_button, json_output] #, json_output_code]
375