Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,6 +20,8 @@ wiki = WikipediaQueryRun(api_wrapper=api_wrapper_wiki)
|
|
| 20 |
search = DuckDuckGoSearchRun(name="Search")
|
| 21 |
tools = [search, arxiv, wiki]
|
| 22 |
|
|
|
|
|
|
|
| 23 |
# --- Model setup ---
|
| 24 |
llm = ChatGroq(groq_api_key=api_key, model_name="Llama3-8b-8192", streaming=True)
|
| 25 |
search_agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, handle_parsing_errors=True)
|
|
|
|
| 20 |
search = DuckDuckGoSearchRun(name="Search")
|
| 21 |
tools = [search, arxiv, wiki]
|
| 22 |
|
| 23 |
+
api_key = "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"
|
| 24 |
+
|
| 25 |
# --- Model setup ---
|
| 26 |
llm = ChatGroq(groq_api_key=api_key, model_name="Llama3-8b-8192", streaming=True)
|
| 27 |
search_agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, handle_parsing_errors=True)
|