MSU576 commited on
Commit
101f896
·
verified ·
1 Parent(s): 4791835

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -35
app.py CHANGED
@@ -694,24 +694,34 @@ body { background: #0b0b0b; color: #e9eef6; }
694
  from streamlit_option_menu import option_menu
695
 
696
  with st.sidebar:
697
- st.markdown("<h2 style='color:#FF8C00;margin:8px 0'>GeoMate V2</h2>", unsafe_allow_html=True)
698
-
699
- # -------------------
700
- # LLM model selector
701
- # -------------------
702
- st.session_state["llm_model"] = st.selectbox("Select LLM model", options=[
703
- "meta-llama/llama-4-maverick-17b-128e-instruct",
 
 
 
 
 
 
 
 
 
704
  "llama-3.1-8b-instant",
705
  "meta-llama/llama-guard-4-12b",
706
  "llama-3.3-70b-versatile",
707
  "groq/compound",
708
  "deepseek-r1-distill-llama-70b", # ✅ DeepSeek
709
  "gemini-1.5-pro", # ✅ Gemini Pro
710
- "gemini-1.5-flash" # ✅ Gemini Flash
711
- ], index=0)
712
-
713
- st.markdown("---")
714
-
 
715
  # -------------------
716
  # Site management
717
  # -------------------
@@ -797,17 +807,8 @@ with st.sidebar:
797
  st.markdown("---")
798
  st.markdown("© GeoMate • Advanced geotechnical copilot", unsafe_allow_html=True)
799
 
800
- # -------------------
801
- # 3) Main Page Content
802
- # -------------------
803
- st.title("🌍 GeoMate V2 — Geotechnical Copilot")
804
- st.write("Select a site in the sidebar to view and manage project data.")
805
-
806
  # 7) Pages implementation
807
  import streamlit as st
808
- import torch
809
- from torchvision import transforms
810
- from PIL import Image
811
  import os
812
 
813
  # -------------------- SESSION INIT --------------------
@@ -2015,20 +2016,7 @@ if "page" not in st.session_state:
2015
  # ===============================
2016
  # Sidebar or Top-Bar Model Selector
2017
  # ===============================
2018
- with st.sidebar:
2019
- st.markdown("### ⚙️ LLM Model Selector")
2020
- st.session_state["llm_model"] = st.selectbox(
2021
- "Choose AI Model",
2022
- [
2023
- "groq/compound", # Groq general model
2024
- "deepseek-r1-distill-llama-70b", # DeepSeek
2025
- "gemini-1.5-pro", # Gemini
2026
- ],
2027
- index=0 if "llm_model" not in st.session_state else
2028
- ["groq/compound", "deepseek-r1-distill-llama-70b", "gemini-1.5-pro"].index(
2029
- st.session_state.get("llm_model", "groq/compound")
2030
- )
2031
- )
2032
 
2033
  # ===============================
2034
  # Page Menu (Horizontal)
 
694
  from streamlit_option_menu import option_menu
695
 
696
  with st.sidebar:
697
+ st.markdown("### ⚙️ LLM Model Selector")
698
+ st.session_state["llm_model"] = st.selectbox(
699
+ "Choose AI Model",
700
+ [
701
+ "meta-llama/llama-4-maverick-17b-128e-instruct",
702
+ "llama-3.1-8b-instant",
703
+ "meta-llama/llama-guard-4-12b",
704
+ "llama-3.3-70b-versatile",
705
+ "groq/compound",
706
+ "deepseek-r1-distill-llama-70b", # ✅ DeepSeek
707
+ "gemini-1.5-pro", # ✅ Gemini Pro
708
+ "gemini-1.5-flash", # ✅ Gemini Flash
709
+ "gemini-2.5-pro"
710
+ ],
711
+ index=0 if "llm_model" not in st.session_state else
712
+ ["meta-llama/llama-4-maverick-17b-128e-instruct",
713
  "llama-3.1-8b-instant",
714
  "meta-llama/llama-guard-4-12b",
715
  "llama-3.3-70b-versatile",
716
  "groq/compound",
717
  "deepseek-r1-distill-llama-70b", # ✅ DeepSeek
718
  "gemini-1.5-pro", # ✅ Gemini Pro
719
+ "gemini-1.5-flash", # ✅ Gemini Flash
720
+ "gemini-2.5-pro"
721
+ ].index(
722
+ st.session_state.get("llm_model", "groq/compound")
723
+ )
724
+ )
725
  # -------------------
726
  # Site management
727
  # -------------------
 
807
  st.markdown("---")
808
  st.markdown("© GeoMate • Advanced geotechnical copilot", unsafe_allow_html=True)
809
 
 
 
 
 
 
 
810
  # 7) Pages implementation
811
  import streamlit as st
 
 
 
812
  import os
813
 
814
  # -------------------- SESSION INIT --------------------
 
2016
  # ===============================
2017
  # Sidebar or Top-Bar Model Selector
2018
  # ===============================
2019
+
 
 
 
 
 
 
 
 
 
 
 
 
 
2020
 
2021
  # ===============================
2022
  # Page Menu (Horizontal)