Romain Fayoux
commited on
Commit
·
5e9ab3b
1
Parent(s):
4829f22
Setting remote telemetry
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import os
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import pandas as pd
|
|
@@ -250,8 +251,8 @@ if __name__ == "__main__":
|
|
| 250 |
print("\n" + "-" * 30 + " App Starting " + "-" * 30)
|
| 251 |
|
| 252 |
# Telemetry
|
| 253 |
-
register()
|
| 254 |
-
SmolagentsInstrumentor().instrument()
|
| 255 |
|
| 256 |
# Check for SPACE_HOST and SPACE_ID at startup for information
|
| 257 |
space_host_startup = os.getenv("SPACE_HOST")
|
|
|
|
| 1 |
import os
|
| 2 |
+
from turtle import tracer
|
| 3 |
import gradio as gr
|
| 4 |
import requests
|
| 5 |
import pandas as pd
|
|
|
|
| 251 |
print("\n" + "-" * 30 + " App Starting " + "-" * 30)
|
| 252 |
|
| 253 |
# Telemetry
|
| 254 |
+
tracer_provider = register(project_name="final_assignment_template")
|
| 255 |
+
SmolagentsInstrumentor().instrument(tracer_provider=tracer_provider)
|
| 256 |
|
| 257 |
# Check for SPACE_HOST and SPACE_ID at startup for information
|
| 258 |
space_host_startup = os.getenv("SPACE_HOST")
|