bstraehle commited on
Commit
b08b97f
1 Parent(s): 8cfa550

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -9,8 +9,6 @@ os.environ["LANGCHAIN_PROJECT"] = "langgraph-multi-agent"
9
  os.environ["LANGCHAIN_TRACING_V2"] = "true"
10
 
11
  LLM = "gpt-4o"
12
- MAX_TOKENS = 10000
13
- TEMPERATURE = 0.01
14
 
15
  def invoke(openai_api_key, topic):
16
  if not openai_api_key:
@@ -20,7 +18,7 @@ def invoke(openai_api_key, topic):
20
 
21
  with lock:
22
  os.environ["OPENAI_API_KEY"] = openai_api_key
23
- article = run_multi_agent(LLM, MAX_TOKENS, TEMPERATURE, topic)
24
  del os.environ["OPENAI_API_KEY"]
25
  return article
26
 
@@ -33,4 +31,4 @@ demo = gr.Interface(fn = invoke,
33
  title = "Multi-Agent AI: Article Writing",
34
  description = os.environ["DESCRIPTION"])
35
 
36
- demo.launch()
 
9
  os.environ["LANGCHAIN_TRACING_V2"] = "true"
10
 
11
  LLM = "gpt-4o"
 
 
12
 
13
  def invoke(openai_api_key, topic):
14
  if not openai_api_key:
 
18
 
19
  with lock:
20
  os.environ["OPENAI_API_KEY"] = openai_api_key
21
+ article = run_multi_agent(LLM, topic)
22
  del os.environ["OPENAI_API_KEY"]
23
  return article
24
 
 
31
  title = "Multi-Agent AI: Article Writing",
32
  description = os.environ["DESCRIPTION"])
33
 
34
+ demo.launch()