Rashmi0801 commited on
Commit
200d8cc
·
verified ·
1 Parent(s): c58ef44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ if prompt := st.chat_input(placeholder="What is machine learning?"):
58
  st.error("Please enter your Groq API key in the sidebar.")
59
  st.stop()
60
 
61
- llm = ChatGroq(groq_api_key=api_key, model_name="llama-3.3-70b-versatile")
62
  search_agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, handle_parsing_errors=True)
63
 
64
  with st.chat_message("assistant"):
@@ -100,7 +100,7 @@ def run_evaluation():
100
  return "No questions found", pd.DataFrame()
101
 
102
  # 2. Initialize Agent (reuse tools from cache)
103
- llm = ChatGroq(groq_api_key=api_key, model_name="llama-3.3-70b-versatile")
104
  agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, handle_parsing_errors=True)
105
 
106
  # 3. Process Questions
 
58
  st.error("Please enter your Groq API key in the sidebar.")
59
  st.stop()
60
 
61
+ llm = ChatGroq(groq_api_key=api_key, model_name="llama3-70b-8192")
62
  search_agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, handle_parsing_errors=True)
63
 
64
  with st.chat_message("assistant"):
 
100
  return "No questions found", pd.DataFrame()
101
 
102
  # 2. Initialize Agent (reuse tools from cache)
103
+ llm = ChatGroq(groq_api_key=api_key, model_name="llama3-70b-8192")
104
  agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, handle_parsing_errors=True)
105
 
106
  # 3. Process Questions