Spaces:
Runtime error
Runtime error
Adrien
commited on
Commit
•
a4b9189
1
Parent(s):
ed83d97
add phoenix
Browse files
app.py
CHANGED
@@ -7,9 +7,6 @@ from Claude import Claude
|
|
7 |
import phoenix as px
|
8 |
|
9 |
|
10 |
-
px.launch_app()
|
11 |
-
|
12 |
-
|
13 |
def check_password():
|
14 |
"""Returns `True` if the user had the correct password."""
|
15 |
|
|
|
7 |
import phoenix as px
|
8 |
|
9 |
|
|
|
|
|
|
|
10 |
def check_password():
|
11 |
"""Returns `True` if the user had the correct password."""
|
12 |
|
writer.py
CHANGED
@@ -9,8 +9,10 @@ from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExport
|
|
9 |
from opentelemetry.sdk import trace as trace_sdk
|
10 |
from opentelemetry.sdk.resources import Resource
|
11 |
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
|
|
|
12 |
|
13 |
-
|
|
|
14 |
resource = Resource(attributes={})
|
15 |
tracer_provider = trace_sdk.TracerProvider(resource=resource)
|
16 |
span_otlp_exporter = OTLPSpanExporter(endpoint=endpoint)
|
|
|
9 |
from opentelemetry.sdk import trace as trace_sdk
|
10 |
from opentelemetry.sdk.resources import Resource
|
11 |
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
|
12 |
+
import phoenix as px
|
13 |
|
14 |
+
px.launch_app()
|
15 |
+
endpoint = "http://neutral-sole-glad.ngrok-free.app/v1/traces"
|
16 |
resource = Resource(attributes={})
|
17 |
tracer_provider = trace_sdk.TracerProvider(resource=resource)
|
18 |
span_otlp_exporter = OTLPSpanExporter(endpoint=endpoint)
|