Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
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="
|
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
|