bstraehle commited on
Commit
e8458c3
·
1 Parent(s): c9e3d45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -34,9 +34,11 @@ def invoke(openai_api_key, prompt):
34
  result = ""
35
 
36
  try:
37
- llm = ChatOpenAI(temperature=0, model="gpt-4")
 
 
38
 
39
- tools = load_tools(["llm-math","wikipedia"], llm=llm)
40
 
41
  #agent= initialize_agent(
42
  # tools + [time],
 
34
  result = ""
35
 
36
  try:
37
+ llm = ChatOpenAI(model_name = config["model_name"],
38
+ openai_api_key = openai_api_key,
39
+ temperature = config["temperature"])
40
 
41
+ tools = load_tools(["llm-math"], llm = llm)
42
 
43
  #agent= initialize_agent(
44
  # tools + [time],