Chris4K commited on
Commit
022a8c8
·
verified ·
1 Parent(s): 457a598

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # config.py
2
  from dataclasses import dataclass, field
3
  from enum import Enum
 
1
+
2
+ from langfuse import Langfuse
3
+ from langfuse.decorators import observe, langfuse_context
4
+
5
+ from config.config import settings
6
+
7
+
8
+ # Initialize Langfuse
9
+ os.environ["LANGFUSE_PUBLIC_KEY"] = "pk-lf-9f2c32d2-266f-421d-9b87-51377f0a268c"
10
+ os.environ["LANGFUSE_SECRET_KEY"] = "sk-lf-229e10c5-6210-4a4b-a432-0f17bc66e56c"
11
+ os.environ["LANGFUSE_HOST"] = "https://chris4k-langfuse-template-space.hf.space" # 🇪🇺 EU region
12
+
13
+ langfuse = Langfuse()
14
+
15
+
16
+
17
  # config.py
18
  from dataclasses import dataclass, field
19
  from enum import Enum