Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import os
|
2 |
-
os.environ['COHERE_API_KEY'] =
|
3 |
# Create the Cohere chat model
|
4 |
from langchain_cohere.chat_models import ChatCohere
|
5 |
chat = ChatCohere(model="command-r-plus", temperature=0.3)
|
6 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
7 |
|
8 |
-
os.environ['TAVILY_API_KEY'] =
|
9 |
|
10 |
internet_search = TavilySearchResults()
|
11 |
internet_search.name = "internet_search"
|
|
|
1 |
import os
|
2 |
+
os.environ['COHERE_API_KEY'] = os.getenv('cohere_ai')
|
3 |
# Create the Cohere chat model
|
4 |
from langchain_cohere.chat_models import ChatCohere
|
5 |
chat = ChatCohere(model="command-r-plus", temperature=0.3)
|
6 |
from langchain_community.tools.tavily_search import TavilySearchResults
|
7 |
|
8 |
+
os.environ['TAVILY_API_KEY'] = os.getenv('tavily_ai')
|
9 |
|
10 |
internet_search = TavilySearchResults()
|
11 |
internet_search.name = "internet_search"
|