iQuentin commited on
Commit
24ea4ca
·
verified ·
1 Parent(s): f930d1f

Use agent.invoke

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,11 +32,11 @@ def run_test( profile: gr.OAuthProfile | None):
32
  return f"Error initializing agent: {e}", None
33
 
34
  try:
35
- answer = agent("What kind of techno is Kyber, from former lead developer of VLC ?")
36
  return answer, None
37
  except Exception as e:
38
- print(f"Error running agent a test run: {e}")
39
- return f"Error running agent a test run: {e}", None
40
 
41
 
42
 
 
32
  return f"Error initializing agent: {e}", None
33
 
34
  try:
35
+ answer = agent.invoke("What kind of techno is Kyber, from former lead developer of VLC ?")
36
  return answer, None
37
  except Exception as e:
38
+ print(f"Error running agent test run: {e}")
39
+ return f"Error running agent test run: {e}", None
40
 
41
 
42