pentarosarium commited on
Commit
96fddb9
·
1 Parent(s): fa4f5f7

progress more (3.15)

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -153,10 +153,11 @@ def fuzzy_deduplicate(df, column, threshold=65):
153
 
154
  def init_langchain_llm():
155
  try:
156
- # Get model selection from sidebar
157
  model_choice = st.sidebar.radio(
158
  "Выберите модель для анализа:",
159
- ["Groq (llama-3.1-70b)", "ChatGPT-4-mini", "NVIDIA Nemotron-70B"]
 
160
  )
161
 
162
  if model_choice == "Groq (llama-3.1-70b)":
@@ -171,7 +172,7 @@ def init_langchain_llm():
171
  temperature=0.0
172
  )
173
 
174
- elif model_choice == "ChatGPT-4-mini":
175
  if 'groq_key' not in st.secrets:
176
  st.error("OpenAI API key not found in secrets. Please add it with the key 'groq_key'.")
177
  st.stop()
@@ -463,7 +464,7 @@ def create_output_file(df, uploaded_file, llm):
463
 
464
  def main():
465
  with st.sidebar:
466
- st.title("::: AI-анализ мониторинга новостей (v.3.14):::")
467
  st.subheader("по материалам СКАН-ИНТЕРФАКС ")
468
  st.markdown(
469
  """
 
153
 
154
  def init_langchain_llm():
155
  try:
156
+ # Get model selection from sidebar with unique key
157
  model_choice = st.sidebar.radio(
158
  "Выберите модель для анализа:",
159
+ ["Groq (llama-3.1-70b)", "ChatGPT-4-mini", "NVIDIA Nemotron-70B"],
160
+ key="model_selector_radio" # Added unique key
161
  )
162
 
163
  if model_choice == "Groq (llama-3.1-70b)":
 
172
  temperature=0.0
173
  )
174
 
175
+ elif model_choice == "ChatGPT-4o":
176
  if 'groq_key' not in st.secrets:
177
  st.error("OpenAI API key not found in secrets. Please add it with the key 'groq_key'.")
178
  st.stop()
 
464
 
465
  def main():
466
  with st.sidebar:
467
+ st.title("::: AI-анализ мониторинга новостей (v.3.15):::")
468
  st.subheader("по материалам СКАН-ИНТЕРФАКС ")
469
  st.markdown(
470
  """