Spaces:
Sleeping
Sleeping
Update streamlit_hub.py
Browse files- streamlit_hub.py +9 -28
streamlit_hub.py
CHANGED
|
@@ -1,30 +1,20 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from pathlib import Path
|
| 3 |
import yaml
|
| 4 |
-
|
| 5 |
-
# Import demo modules
|
| 6 |
from financegpt.app import main as finance_app
|
| 7 |
from legaldoc_summarizer.app import main as legal_app
|
| 8 |
from retailgpt_evaluator.app import main as retail_app
|
| 9 |
-
from app import main as gradio_app
|
|
|
|
| 10 |
|
| 11 |
-
# -------------------------------
|
| 12 |
-
# Global Page Config
|
| 13 |
-
# -------------------------------
|
| 14 |
st.set_page_config(page_title="AxionX Digital Hub", page_icon="π", layout="wide")
|
| 15 |
|
| 16 |
# -------------------------------
|
| 17 |
-
#
|
| 18 |
# -------------------------------
|
| 19 |
-
logo_path = Path(
|
| 20 |
if logo_path.exists():
|
| 21 |
-
st.sidebar.image(str(logo_path
|
| 22 |
-
else:
|
| 23 |
-
st.sidebar.warning("β οΈ Logo not found at /assets/axionx_logo.png")
|
| 24 |
|
| 25 |
-
# -------------------------------
|
| 26 |
-
# Sidebar Navigation
|
| 27 |
-
# -------------------------------
|
| 28 |
st.sidebar.title("π§ Select Demo")
|
| 29 |
choice = st.sidebar.radio(
|
| 30 |
"Choose a demo:",
|
|
@@ -42,25 +32,16 @@ st.sidebar.info(
|
|
| 42 |
"and Retail use cases."
|
| 43 |
)
|
| 44 |
|
| 45 |
-
# -------------------------------
|
| 46 |
-
# Main Title
|
| 47 |
-
# -------------------------------
|
| 48 |
st.title("π AxionX Digital β Model Training & Evaluation Suite")
|
| 49 |
|
| 50 |
-
|
| 51 |
-
# Load Selected Demo
|
| 52 |
-
# -------------------------------
|
| 53 |
-
if choice.startswith("π°"):
|
| 54 |
finance_app()
|
| 55 |
-
elif
|
| 56 |
legal_app()
|
| 57 |
-
elif
|
| 58 |
retail_app()
|
| 59 |
-
elif
|
| 60 |
gradio_app()
|
| 61 |
|
| 62 |
-
# -------------------------------
|
| 63 |
-
# Footer
|
| 64 |
-
# -------------------------------
|
| 65 |
st.markdown("---")
|
| 66 |
st.caption("Β© 2025 AxionX Digital β Innovating Tomorrow")
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
import yaml
|
|
|
|
|
|
|
| 3 |
from financegpt.app import main as finance_app
|
| 4 |
from legaldoc_summarizer.app import main as legal_app
|
| 5 |
from retailgpt_evaluator.app import main as retail_app
|
| 6 |
+
from app import main as gradio_app
|
| 7 |
+
from pathlib import Path
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
st.set_page_config(page_title="AxionX Digital Hub", page_icon="π", layout="wide")
|
| 10 |
|
| 11 |
# -------------------------------
|
| 12 |
+
# Optional: Show Logo
|
| 13 |
# -------------------------------
|
| 14 |
+
logo_path = Path("assets/axionx_logo.png")
|
| 15 |
if logo_path.exists():
|
| 16 |
+
st.sidebar.image(str(logo_path), width=180) # π Adjust size as needed
|
|
|
|
|
|
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
st.sidebar.title("π§ Select Demo")
|
| 19 |
choice = st.sidebar.radio(
|
| 20 |
"Choose a demo:",
|
|
|
|
| 32 |
"and Retail use cases."
|
| 33 |
)
|
| 34 |
|
|
|
|
|
|
|
|
|
|
| 35 |
st.title("π AxionX Digital β Model Training & Evaluation Suite")
|
| 36 |
|
| 37 |
+
if "FinanceGPT" in choice:
|
|
|
|
|
|
|
|
|
|
| 38 |
finance_app()
|
| 39 |
+
elif "LegalDoc" in choice:
|
| 40 |
legal_app()
|
| 41 |
+
elif "RetailGPT" in choice:
|
| 42 |
retail_app()
|
| 43 |
+
elif "Base Demo" in choice:
|
| 44 |
gradio_app()
|
| 45 |
|
|
|
|
|
|
|
|
|
|
| 46 |
st.markdown("---")
|
| 47 |
st.caption("Β© 2025 AxionX Digital β Innovating Tomorrow")
|