Update app.py
Browse files
app.py
CHANGED
|
@@ -5,12 +5,19 @@ from langfuse import Langfuse
|
|
| 5 |
from langfuse.decorators import observe, langfuse_context
|
| 6 |
|
| 7 |
# Initialize Langfuse
|
| 8 |
-
langfuse = Langfuse(
|
| 9 |
-
secret_key="sk-lf-229e10c5-6210-4a4b-a432-0f17bc66e56c",
|
| 10 |
-
public_key="pk-lf-9f2c32d2-266f-421d-9b87-51377f0a268c",
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# Load the Llama model
|
| 16 |
model_name = "meta-llama/Llama-3.2-3B-Instruct" # Replace with the exact model path
|
|
|
|
| 5 |
from langfuse.decorators import observe, langfuse_context
|
| 6 |
|
| 7 |
# Initialize Langfuse
|
| 8 |
+
#langfuse = Langfuse(
|
| 9 |
+
# secret_key="sk-lf-229e10c5-6210-4a4b-a432-0f17bc66e56c",
|
| 10 |
+
# public_key="pk-lf-9f2c32d2-266f-421d-9b87-51377f0a268c",
|
| 11 |
+
# host="https://chris4k-langfuse-template-space.hf.space"
|
| 12 |
+
#)
|
| 13 |
+
|
| 14 |
+
# Get keys for your project from the project settings page
|
| 15 |
+
# https://cloud.langfuse.com
|
| 16 |
+
os.environ["LANGFUSE_PUBLIC_KEY"] = "pk-lf-9f2c32d2-266f-421d-9b87-51377f0a268c"
|
| 17 |
+
os.environ["LANGFUSE_SECRET_KEY"] = "sk-lf-229e10c5-6210-4a4b-a432-0f17bc66e56c"
|
| 18 |
+
os.environ["LANGFUSE_HOST"] = "https://chris4k-langfuse-template-space.hf.space" # 🇪🇺 EU region
|
| 19 |
+
|
| 20 |
+
langfuse = Langfuse()
|
| 21 |
|
| 22 |
# Load the Llama model
|
| 23 |
model_name = "meta-llama/Llama-3.2-3B-Instruct" # Replace with the exact model path
|