Spaces:
Runtime error
Runtime error
Leonardo
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,15 @@ import re # Added missing import
|
|
| 5 |
import shutil # Added missing import
|
| 6 |
from typing import Dict, List, Optional, Any
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
from dotenv import load_dotenv
|
| 9 |
from huggingface_hub import login
|
| 10 |
import gradio as gr
|
|
|
|
| 5 |
import shutil # Added missing import
|
| 6 |
from typing import Dict, List, Optional, Any
|
| 7 |
|
| 8 |
+
# Telemetry imports (optional)
|
| 9 |
+
with contextlib.suppress(ImportError):
|
| 10 |
+
from phoenix.otel import register
|
| 11 |
+
from openinference.instrumentation.smolagents import SmolagentsInstrumentor
|
| 12 |
+
|
| 13 |
+
# Initialize telemetry for observability and tracing
|
| 14 |
+
register()
|
| 15 |
+
SmolagentsInstrumentor().instrument()
|
| 16 |
+
|
| 17 |
from dotenv import load_dotenv
|
| 18 |
from huggingface_hub import login
|
| 19 |
import gradio as gr
|