Chris4K commited on
Commit
16ea01c
·
verified ·
1 Parent(s): 61f561c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -2,6 +2,15 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
2
  import torch
3
  import gradio as gr
4
 
 
 
 
 
 
 
 
 
 
5
  # Load Llama 3.2 model
6
  model_name = "meta-llama/Llama-3.2-3B-Instruct" # Replace with the exact model path
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
 
2
  import torch
3
  import gradio as gr
4
 
5
+
6
+ from langfuse import Langfuse
7
+
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
  # Load Llama 3.2 model
15
  model_name = "meta-llama/Llama-3.2-3B-Instruct" # Replace with the exact model path
16
  tokenizer = AutoTokenizer.from_pretrained(model_name)