mariotawfik commited on
Commit
34ea80d
1 Parent(s): bc231b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,7 +72,7 @@ def clean_tmp_directory():
72
  file.unlink()
73
 
74
 
75
- def keygen(eval_key):
76
  # Clean tmp directory if needed
77
  clean_tmp_directory()
78
 
@@ -354,7 +354,7 @@ if __name__ == "__main__":
354
 
355
  eval_key_input = gr.Textbox(value=eval_key)
356
  # Button for key generation
357
- b_gen_key.click(fn=keygen, inputs=[eval_key_input], outputs=[evaluation_key])
358
 
359
  encodings_input = gr.Textbox(value=encodings)
360
  # Button to extract vector
 
72
  file.unlink()
73
 
74
 
75
+ def keygen(eval_key, user_id):
76
  # Clean tmp directory if needed
77
  clean_tmp_directory()
78
 
 
354
 
355
  eval_key_input = gr.Textbox(value=eval_key)
356
  # Button for key generation
357
+ b_gen_key.click(fn=keygen, inputs=[eval_key_input, user_id_input], outputs=[evaluation_key])
358
 
359
  encodings_input = gr.Textbox(value=encodings)
360
  # Button to extract vector