kwabs22 commited on
Commit
8e60bdf
·
1 Parent(s): 585cfa0

Refactor Proto Assist accordion to absorb mess

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -363,11 +363,11 @@ 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_code = 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
 
 
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