Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,27 +1,22 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
from tab.tab1_qkd import qkd_tab
|
| 5 |
-
from tab.tab2_encryption import encryption_tab
|
| 6 |
-
from tab.tab3_decryption import decryption_tab
|
| 7 |
-
from tab.tab4_intrusion_detection import intrusion_detection_tab
|
| 8 |
-
from tab.tab5_randomness_visualizer import randomness_visualizer_tab
|
| 9 |
-
from tab.tab6_noise_simulation import noise_simulation_tab
|
| 10 |
-
|
| 11 |
def create_interface():
|
| 12 |
with gr.Blocks(title="QuantumCrypt") as demo:
|
| 13 |
-
gr.Markdown("# 🛡️ QuantumCrypt")
|
| 14 |
-
|
| 15 |
-
# Shared QKD key state
|
| 16 |
-
qkd_key_state = gr.State("")
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
noise_simulation_tab()
|
| 25 |
|
| 26 |
return demo
|
| 27 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from tab.tab1_qkd import get_tab1_qkd
|
| 3 |
+
from tab.tab2_encryption import get_tab2_encryption
|
| 4 |
+
from tab.tab3_decryption import get_tab3_decryption
|
| 5 |
+
from tab.tab4_intrusion_detection import get_tab4_intrusion_detection
|
| 6 |
+
from tab.tab5_randomness_visualizer import get_tab5_randomness_visualizer
|
| 7 |
+
from tab.tab6_noise_simulation import get_tab6_noise_simulation
|
| 8 |
|
| 9 |
+
# Main interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
def create_interface():
|
| 11 |
with gr.Blocks(title="QuantumCrypt") as demo:
|
| 12 |
+
gr.Markdown("# 🛡️ QuantumCrypt: Quantum-Powered Cybersecurity Suite")
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
get_tab1_qkd()
|
| 15 |
+
get_tab2_encryption()
|
| 16 |
+
get_tab3_decryption()
|
| 17 |
+
get_tab4_intrusion_detection()
|
| 18 |
+
get_tab5_randomness_visualizer()
|
| 19 |
+
get_tab6_noise_simulation()
|
|
|
|
| 20 |
|
| 21 |
return demo
|
| 22 |
|