Spaces:
Sleeping
Sleeping
chore: remove next and previous buttons to swith tabs in version 6
Browse files
app.py
CHANGED
@@ -593,13 +593,7 @@ if __name__ == "__main__":
|
|
593 |
label="Related Symptoms:", visible=True, interactive=False
|
594 |
)
|
595 |
|
596 |
-
disease_box.change(
|
597 |
-
fn=display_default_symptoms_fn, inputs=[disease_box], outputs=[default_symptoms]
|
598 |
-
)
|
599 |
-
|
600 |
-
gr.Markdown(
|
601 |
-
"#### Submit your chief complaints by clicking on **Confirm Symptoms π** then go to the **Next Step π**"
|
602 |
-
)
|
603 |
|
604 |
user_vect_box1 = gr.Textbox(visible=False)
|
605 |
|
@@ -688,16 +682,6 @@ if __name__ == "__main__":
|
|
688 |
outputs=[error_box4, srv_resp_send_data_box],
|
689 |
)
|
690 |
|
691 |
-
gr.Markdown("\n\n")
|
692 |
-
with gr.Row().style(equal_height=True):
|
693 |
-
with gr.Column(scale=1):
|
694 |
-
prev_tab = gr.Button("π Previous Step")
|
695 |
-
prev_tab.click(lambda _: gr.Tabs.update(selected=0), None, tabs)
|
696 |
-
|
697 |
-
with gr.Column(scale=1):
|
698 |
-
next_tab = gr.Button("Next Step π")
|
699 |
-
next_tab.click(lambda _: gr.Tabs.update(selected=2), None, tabs)
|
700 |
-
|
701 |
with gr.TabItem("3. FHE execution", id=2):
|
702 |
gr.Markdown("<span style='color:grey'>Server Side</span>")
|
703 |
gr.Markdown("## Run the FHE evaluation")
|
@@ -718,16 +702,6 @@ if __name__ == "__main__":
|
|
718 |
outputs=[fhe_execution_time_box, error_box5],
|
719 |
)
|
720 |
|
721 |
-
gr.Markdown("\n\n")
|
722 |
-
with gr.Row().style(equal_height=True):
|
723 |
-
with gr.Column(scale=1):
|
724 |
-
prev_tab = gr.Button("π Previous Step")
|
725 |
-
prev_tab.click(lambda _: gr.Tabs.update(selected=1), None, tabs)
|
726 |
-
|
727 |
-
with gr.Column(scale=1):
|
728 |
-
next_tab = gr.Button("Next Step π ")
|
729 |
-
next_tab.click(lambda _: gr.Tabs.update(selected=3), None, tabs)
|
730 |
-
|
731 |
with gr.TabItem("4. Data Decryption", id=3):
|
732 |
gr.Markdown("<span style='color:grey'>Client Side</span>")
|
733 |
gr.Markdown("## Get the data from the <span style='color:grey'>Server Side</span>")
|
@@ -766,15 +740,6 @@ if __name__ == "__main__":
|
|
766 |
outputs=[decrypt_target_box, error_box7],
|
767 |
)
|
768 |
|
769 |
-
with gr.Row().style(equal_height=True):
|
770 |
-
with gr.Column(scale=1):
|
771 |
-
prev_tab = gr.Button("π Previous Step")
|
772 |
-
prev_tab.click(lambda _: gr.Tabs.update(selected=2), None, tabs)
|
773 |
-
|
774 |
-
with gr.Column(scale=1):
|
775 |
-
next_tab = gr.Button("π π Go back to start")
|
776 |
-
next_tab.click(lambda _: gr.Tabs.update(selected=0), None, tabs)
|
777 |
-
|
778 |
gen_key_btn.click(
|
779 |
key_gen_fn,
|
780 |
inputs=user_vect_box1,
|
|
|
593 |
label="Related Symptoms:", visible=True, interactive=False
|
594 |
)
|
595 |
|
596 |
+
disease_box.change(fn=display_default_symptoms_fn, inputs=[disease_box], outputs=[default_symptoms])
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
|
598 |
user_vect_box1 = gr.Textbox(visible=False)
|
599 |
|
|
|
682 |
outputs=[error_box4, srv_resp_send_data_box],
|
683 |
)
|
684 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
with gr.TabItem("3. FHE execution", id=2):
|
686 |
gr.Markdown("<span style='color:grey'>Server Side</span>")
|
687 |
gr.Markdown("## Run the FHE evaluation")
|
|
|
702 |
outputs=[fhe_execution_time_box, error_box5],
|
703 |
)
|
704 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
with gr.TabItem("4. Data Decryption", id=3):
|
706 |
gr.Markdown("<span style='color:grey'>Client Side</span>")
|
707 |
gr.Markdown("## Get the data from the <span style='color:grey'>Server Side</span>")
|
|
|
740 |
outputs=[decrypt_target_box, error_box7],
|
741 |
)
|
742 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
gen_key_btn.click(
|
744 |
key_gen_fn,
|
745 |
inputs=user_vect_box1,
|