Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -511,9 +511,6 @@ def decrypt_fn(user_id: str, user_inputs: np.ndarray) -> Dict:
|
|
511 |
|
512 |
print("output =\n", output)
|
513 |
|
514 |
-
# top3_diseases = np.argsort(output.flatten())[-3:][::-1]
|
515 |
-
# top3_proba = output[0][top3_diseases]
|
516 |
-
|
517 |
out = {"Perishes": float(output[0][0]), "Survives": float(output[0][1])}
|
518 |
|
519 |
print("output =\n", out)
|
@@ -555,7 +552,7 @@ with gr.Blocks() as demo:
|
|
555 |
outputs=[
|
556 |
key_box,
|
557 |
user_id_box,
|
558 |
-
key_len_box,
|
559 |
error_box2,
|
560 |
],
|
561 |
)
|
@@ -575,7 +572,7 @@ with gr.Blocks() as demo:
|
|
575 |
encrypt_fn,
|
576 |
inputs=[out, user_id_box],
|
577 |
outputs=[
|
578 |
-
input_dict_box,
|
579 |
enc_dict_box,
|
580 |
error_box3,
|
581 |
],
|
|
|
511 |
|
512 |
print("output =\n", output)
|
513 |
|
|
|
|
|
|
|
514 |
out = {"Perishes": float(output[0][0]), "Survives": float(output[0][1])}
|
515 |
|
516 |
print("output =\n", out)
|
|
|
552 |
outputs=[
|
553 |
key_box,
|
554 |
user_id_box,
|
555 |
+
# key_len_box,
|
556 |
error_box2,
|
557 |
],
|
558 |
)
|
|
|
572 |
encrypt_fn,
|
573 |
inputs=[out, user_id_box],
|
574 |
outputs=[
|
575 |
+
# input_dict_box,
|
576 |
enc_dict_box,
|
577 |
error_box3,
|
578 |
],
|