mostafa-sh commited on
Commit
a74945c
·
1 Parent(s): f0f4c54

fix show expert answer

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -56,7 +56,7 @@ base_model_path_3B = "meta-llama/Llama-3.2-3B-Instruct"
56
 
57
  # ---------------------------------------
58
  # ---------------------------------------
59
-
60
  st.markdown("""
61
  Welcome to <span style='color:red'><a href='https://my-ai-university.com/' target='_blank' style='text-decoration: none; color: red;'>AI University</a></span> — an AI-powered platform designed to address scientific course queries, dynamically adapting to instructors' teaching styles and students' learning needs.
62
  This prototype showcases the capabilities of the <span style='color:red'><a href='https://github.com/my-ai-university' target='_blank' style='text-decoration: none; color: red;'>AI University platform</a></span> by providing expert answers to queries related to a graduate-level <span style='color:red'><a href='https://www.youtube.com/playlist?list=PLJhG_d-Sp_JHKVRhfTgDqbic_4MHpltXZ' target='_blank' style='text-decoration: none; color: red;'>Finite Element Method (FEM)</a></span> course.
@@ -133,6 +133,8 @@ with st.sidebar:
133
  else:
134
  st.session_state.activate_expert = st.toggle("Use expert model", value=False)
135
 
 
 
136
  st.session_state.expert_model = st.selectbox(
137
  "Choose the LLM model",
138
  ["LLaMA-TOMMI-1.0-11B", "LLaMA-3.2-11B", "gpt-4.1-mini"],
@@ -162,7 +164,7 @@ with st.sidebar:
162
  st.session_state.synthesis_model = st.selectbox(
163
  "Choose the LLM model",
164
  ["LLaMA-3.2-3B", "gpt-4o-mini", "gpt-4.1-mini"], # "LLaMA-3.2-11B",
165
- index=1,
166
  key='a2model'
167
  )
168
 
 
56
 
57
  # ---------------------------------------
58
  # ---------------------------------------
59
+ st.title(":red[AI University] :gray[/] FEM")
60
  st.markdown("""
61
  Welcome to <span style='color:red'><a href='https://my-ai-university.com/' target='_blank' style='text-decoration: none; color: red;'>AI University</a></span> — an AI-powered platform designed to address scientific course queries, dynamically adapting to instructors' teaching styles and students' learning needs.
62
  This prototype showcases the capabilities of the <span style='color:red'><a href='https://github.com/my-ai-university' target='_blank' style='text-decoration: none; color: red;'>AI University platform</a></span> by providing expert answers to queries related to a graduate-level <span style='color:red'><a href='https://www.youtube.com/playlist?list=PLJhG_d-Sp_JHKVRhfTgDqbic_4MHpltXZ' target='_blank' style='text-decoration: none; color: red;'>Finite Element Method (FEM)</a></span> course.
 
133
  else:
134
  st.session_state.activate_expert = st.toggle("Use expert model", value=False)
135
 
136
+ show_expert_responce = st.toggle("Show initial expert answer", value=False)
137
+
138
  st.session_state.expert_model = st.selectbox(
139
  "Choose the LLM model",
140
  ["LLaMA-TOMMI-1.0-11B", "LLaMA-3.2-11B", "gpt-4.1-mini"],
 
164
  st.session_state.synthesis_model = st.selectbox(
165
  "Choose the LLM model",
166
  ["LLaMA-3.2-3B", "gpt-4o-mini", "gpt-4.1-mini"], # "LLaMA-3.2-11B",
167
+ index=2,
168
  key='a2model'
169
  )
170