Update app.py
Browse files
app.py
CHANGED
@@ -7,22 +7,19 @@ import pandas as pd
|
|
7 |
# Setting up Langfuse for telemetry
|
8 |
from langfuse import Langfuse
|
9 |
|
10 |
-
langfuse
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
17 |
|
18 |
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
trace_provider = TracerProvider()
|
23 |
-
trace_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter()))
|
24 |
-
|
25 |
-
SmolagentsInstrumentor().instrument(tracer_provider=trace_provider)
|
26 |
|
27 |
# Importing the Agent stuff
|
28 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, InferenceClientModel, PromptTemplates, EMPTY_PROMPT_TEMPLATES
|
|
|
7 |
# Setting up Langfuse for telemetry
|
8 |
from langfuse import Langfuse
|
9 |
|
10 |
+
from langfuse import get_client
|
11 |
+
|
12 |
+
langfuse = get_client()
|
13 |
+
|
14 |
+
# -- Verify connection
|
15 |
+
if langfuse.auth_check():
|
16 |
+
print("Langfuse client is authenticated and ready!")
|
17 |
+
else:
|
18 |
+
print("Authentication failed. Please check your credentials and host.")
|
19 |
|
20 |
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
21 |
+
|
22 |
+
SmolagentsInstrumentor().instrument()
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
# Importing the Agent stuff
|
25 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, InferenceClientModel, PromptTemplates, EMPTY_PROMPT_TEMPLATES
|