Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -62,9 +62,9 @@ def invoke(openai_api_key, prompt, agent_option):
|
|
62 |
handle_parsing_errors = True,
|
63 |
verbose = True)
|
64 |
|
65 |
-
|
66 |
|
67 |
-
|
68 |
except Exception as e:
|
69 |
err_msg = e
|
70 |
|
|
|
62 |
handle_parsing_errors = True,
|
63 |
verbose = True)
|
64 |
|
65 |
+
completion = agent(prompt)
|
66 |
|
67 |
+
output = completion["output"]
|
68 |
except Exception as e:
|
69 |
err_msg = e
|
70 |
|