Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,29 +1,39 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
|
|
|
| 3 |
from tab.tab1to3_unified import get_tab1to3_unified
|
| 4 |
-
from tab.tab2_encryption import get_tab2_encryption
|
| 5 |
-
from tab.tab3_decryption import get_tab3_decryption
|
| 6 |
from tab.tab5_randomness_visualizer import get_tab5_randomness
|
| 7 |
from tab.tab6_noise_simulation import get_tab6_noise_simulation
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
|
| 15 |
-
# qkd_key_state = gr.State("")
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
# get_tab2_encryption(qkd_key_state)
|
| 20 |
-
# get_tab3_decryption(qkd_key_state)
|
| 21 |
-
get_tab1to3_unified()
|
| 22 |
-
get_tab5_randomness()
|
| 23 |
-
get_tab6_noise_simulation()
|
| 24 |
|
| 25 |
-
return demo
|
| 26 |
|
|
|
|
| 27 |
if __name__ == "__main__":
|
| 28 |
-
demo = create_interface()
|
| 29 |
demo.launch(share=True)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
|
| 3 |
+
# Tab functions
|
| 4 |
from tab.tab1to3_unified import get_tab1to3_unified
|
|
|
|
|
|
|
| 5 |
from tab.tab5_randomness_visualizer import get_tab5_randomness
|
| 6 |
from tab.tab6_noise_simulation import get_tab6_noise_simulation
|
| 7 |
|
| 8 |
+
# Optional: Custom CSS if you want cleaner styling
|
| 9 |
+
custom_css = """
|
| 10 |
+
.centered-text { text-align: center; font-size: 16px; color: #ddd; margin-top: 20px; }
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
# Main Gradio UI
|
| 14 |
+
with gr.Blocks(css=custom_css, title="QuantumCrypt") as demo:
|
| 15 |
+
|
| 16 |
+
# 🔐 Global Note / Disclaimer
|
| 17 |
+
gr.Markdown(
|
| 18 |
+
"""
|
| 19 |
+
<div style="background-color:#1e1e1e; padding: 15px; border-radius: 10px; border: 1px solid #333; text-align: center; font-size: 14px; color: #ccc;">
|
| 20 |
+
🔐 <strong>Welcome to QuantumCrypt:</strong> A fully modular, quantum-powered cybersecurity suite designed for next-gen secure communication.<br><br>
|
| 21 |
+
⚠️ <strong>Note:</strong> This tool is meant for demonstration and research. Not to be used in production systems.
|
| 22 |
+
</div>
|
| 23 |
+
""",
|
| 24 |
+
elem_classes="centered-text"
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
get_tab1to3_unified()
|
| 28 |
+
|
| 29 |
+
get_tab5_randomness()
|
| 30 |
|
| 31 |
+
get_tab6_noise_simulation()
|
|
|
|
| 32 |
|
| 33 |
+
# Footer credit
|
| 34 |
+
gr.Markdown("🛠️ Built with ❤️ by Ravi", elem_classes="centered-text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
|
|
|
| 36 |
|
| 37 |
+
# Launch the app
|
| 38 |
if __name__ == "__main__":
|
|
|
|
| 39 |
demo.launch(share=True)
|