Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
|
|
2 |
# from smolagents.security import E2BSandbox
|
3 |
import datetime
|
4 |
import pytz
|
@@ -22,7 +23,8 @@ os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://cloud.langfuse.com/api/publ
|
|
22 |
os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = f"Authorization=Basic {LANGFUSE_AUTH}"
|
23 |
|
24 |
from opentelemetry.sdk.trace import TracerProvider
|
25 |
-
from openinference.instrumentation
|
|
|
26 |
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
|
27 |
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
|
28 |
|
|
|
1 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
2 |
+
import smolagents # Added for aliasing
|
3 |
# from smolagents.security import E2BSandbox
|
4 |
import datetime
|
5 |
import pytz
|
|
|
23 |
os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = f"Authorization=Basic {LANGFUSE_AUTH}"
|
24 |
|
25 |
from opentelemetry.sdk.trace import TracerProvider
|
26 |
+
from openinference.instrumentation
|
27 |
+
.smolagents import SmolagentsInstrumentor
|
28 |
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
|
29 |
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
|
30 |
|