bstraehle commited on
Commit
8bdb3dd
·
1 Parent(s): d3653d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,6 +5,8 @@ from datetime import date
5
  from langchain.agents import AgentType, initialize_agent, load_tools, tool
6
  from langchain.chat_models import ChatOpenAI
7
 
 
 
8
  config = {
9
  "max_tokens": 1000,
10
  "model_name": "gpt-4",
@@ -77,7 +79,7 @@ demo = gr.Interface(fn = invoke,
77
  title = "Generative AI - LLM & Agent",
78
  description = description,
79
  examples = [["sk-", "What is today's date?", AGENT_ON],
80
- ["sk-", "What is the weather like in Irvine, CA?", AGENT_ON]],
81
  cache_examples = False)
82
 
83
  demo.launch()
 
5
  from langchain.agents import AgentType, initialize_agent, load_tools, tool
6
  from langchain.chat_models import ChatOpenAI
7
 
8
+ OPENWEATHERMAP_API_KEY = ""
9
+
10
  config = {
11
  "max_tokens": 1000,
12
  "model_name": "gpt-4",
 
79
  title = "Generative AI - LLM & Agent",
80
  description = description,
81
  examples = [["sk-", "What is today's date?", AGENT_ON],
82
+ ["sk-", "What is the weather in Irvine, CA?", AGENT_ON]],
83
  cache_examples = False)
84
 
85
  demo.launch()