SergeyO7 commited on
Commit
adf2534
·
verified ·
1 Parent(s): 0a92fe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -6,6 +6,16 @@ from skyfield.api import load, Topos, load_file
6
  from skyfield import almanac
7
  from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
 
 
 
 
 
 
 
 
 
 
9
 
10
  # Define Zodiac signs and their boundaries (0° to 360° ecliptic longitude)
11
  ZODIAC_SIGNS = [
 
6
  from skyfield import almanac
7
  from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
+ import os
10
+ import base64
11
+
12
+ LANGFUSE_PUBLIC_KEY="pk-lf-133099c7-8644-49e8-8f6e-ec8bd6d543fd"
13
+ LANGFUSE_SECRET_KEY="sk-lf-4fb0e47f-9722-4a50-8e87-da2e1099ea1e"
14
+ LANGFUSE_AUTH=base64.b64encode(f"{LANGFUSE_PUBLIC_KEY}:{LANGFUSE_SECRET_KEY}".encode()).decode()
15
+
16
+ os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://cloud.langfuse.com/api/public/otel" # EU data region
17
+ # os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://us.cloud.langfuse.com/api/public/otel" # US data region
18
+ os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = f"Authorization=Basic {LANGFUSE_AUTH}"
19
 
20
  # Define Zodiac signs and their boundaries (0° to 360° ecliptic longitude)
21
  ZODIAC_SIGNS = [