Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,7 @@ os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = f"Authorization=Basic {LANGFUSE_AUTH}
|
|
20 |
from opentelemetry.sdk.trace import TracerProvider
|
21 |
|
22 |
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
|
|
23 |
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
|
24 |
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
|
25 |
|
@@ -279,8 +280,7 @@ def get_current_time_raw(timezone: str) -> str:
|
|
279 |
now = datetime.datetime.now(tz)
|
280 |
return now.strftime("%Y-%m-%dT%H:%M:%S")
|
281 |
except Exception as e:
|
282 |
-
return f"Error: {str(e
|
283 |
-
)}"
|
284 |
|
285 |
# Model configuration
|
286 |
final_answer = FinalAnswerTool()
|
|
|
20 |
from opentelemetry.sdk.trace import TracerProvider
|
21 |
|
22 |
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
23 |
+
|
24 |
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
|
25 |
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
|
26 |
|
|
|
280 |
now = datetime.datetime.now(tz)
|
281 |
return now.strftime("%Y-%m-%dT%H:%M:%S")
|
282 |
except Exception as e:
|
283 |
+
return f"Error: {str(e)}"
|
|
|
284 |
|
285 |
# Model configuration
|
286 |
final_answer = FinalAnswerTool()
|