qqubb commited on
Commit
e6f7a00
1 Parent(s): 88a82cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -248,7 +248,7 @@ def encrypt_fn(user_inputs: np.ndarray, user_id: str) -> None:
248
 
249
  return {
250
  error_box3: gr.update(visible=False),
251
- input_dict_box: gr.update(visible=True, value=user_inputs),
252
  enc_dict_box: gr.update(visible=True, value=encrypted_quantized_user_inputs_shorten_hex),
253
  }
254
 
@@ -563,8 +563,8 @@ with gr.Blocks() as demo:
563
  error_box3 = gr.Textbox(label="Error ❌", visible=False)
564
 
565
  with gr.Row():
566
- # with gr.Column():
567
- # input_dict_box = gr.Textbox(label="input_dict_box:", max_lines=10)
568
  with gr.Column():
569
  enc_dict_box = gr.Textbox(label="encrypted input_dict_box:", max_lines=10)
570
 
@@ -572,7 +572,7 @@ with gr.Blocks() as demo:
572
  encrypt_fn,
573
  inputs=[out, user_id_box],
574
  outputs=[
575
- # input_dict_box,
576
  enc_dict_box,
577
  error_box3,
578
  ],
 
248
 
249
  return {
250
  error_box3: gr.update(visible=False),
251
+ input_dict_box: gr.update(visible=False, value=user_inputs),
252
  enc_dict_box: gr.update(visible=True, value=encrypted_quantized_user_inputs_shorten_hex),
253
  }
254
 
 
563
  error_box3 = gr.Textbox(label="Error ❌", visible=False)
564
 
565
  with gr.Row():
566
+ with gr.Column():
567
+ input_dict_box = gr.Textbox(label="input_dict_box:", max_lines=10)
568
  with gr.Column():
569
  enc_dict_box = gr.Textbox(label="encrypted input_dict_box:", max_lines=10)
570
 
 
572
  encrypt_fn,
573
  inputs=[out, user_id_box],
574
  outputs=[
575
+ input_dict_box,
576
  enc_dict_box,
577
  error_box3,
578
  ],