Spaces:
Paused
Paused
Update crew.py
Browse files
crew.py
CHANGED
|
@@ -8,6 +8,7 @@ from crewai_tools import (
|
|
| 8 |
)
|
| 9 |
from openinference.instrumentation.crewai import CrewAIInstrumentor
|
| 10 |
from phoenix.otel import register
|
|
|
|
| 11 |
|
| 12 |
PHOENIX_API_KEY = os.environ["PHOENIX_API_KEY"]
|
| 13 |
|
|
@@ -50,4 +51,4 @@ def run_crew(question):
|
|
| 50 |
|
| 51 |
answer = crew().kickoff(inputs={"topic": question})
|
| 52 |
|
| 53 |
-
return
|
|
|
|
| 8 |
)
|
| 9 |
from openinference.instrumentation.crewai import CrewAIInstrumentor
|
| 10 |
from phoenix.otel import register
|
| 11 |
+
from util import get_final_answer
|
| 12 |
|
| 13 |
PHOENIX_API_KEY = os.environ["PHOENIX_API_KEY"]
|
| 14 |
|
|
|
|
| 51 |
|
| 52 |
answer = crew().kickoff(inputs={"topic": question})
|
| 53 |
|
| 54 |
+
return get_final_answer(question, answer)
|