bstraehle commited on
Commit
107ff84
1 Parent(s): d26749f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -33,13 +33,14 @@ def invoke(openai_api_key, prompt, agent_option):
33
 
34
  completion = ""
35
  result = ""
 
36
  err_msg = ""
37
 
38
  try:
39
  start_time_ms = round(time.time() * 1000)
40
 
41
  if (agent_option == AGENT_LANGCHAIN):
42
- completion = agent_langchain(
43
  config,
44
  prompt
45
  )
@@ -72,7 +73,8 @@ def invoke(openai_api_key, prompt, agent_option):
72
  agent_option,
73
  prompt,
74
  completion,
75
- result,
 
76
  err_msg,
77
  start_time_ms,
78
  end_time_ms
 
33
 
34
  completion = ""
35
  result = ""
36
+ callback = ""
37
  err_msg = ""
38
 
39
  try:
40
  start_time_ms = round(time.time() * 1000)
41
 
42
  if (agent_option == AGENT_LANGCHAIN):
43
+ completion, callback = agent_langchain(
44
  config,
45
  prompt
46
  )
 
73
  agent_option,
74
  prompt,
75
  completion,
76
+ result,
77
+ callback,
78
  err_msg,
79
  start_time_ms,
80
  end_time_ms