ryanrwatkins commited on
Commit
95bd611
·
verified ·
1 Parent(s): da4bac9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -85,11 +85,6 @@ langfuse = Langfuse(
85
  host="https://us.cloud.langfuse.com"
86
  )
87
  from langfuse.decorators import observe
88
-
89
- LANGFUSE_SECRET_KEY=os.environ.get("LANGFUSE_SECRET_KEY")
90
- LANGFUSE_PUBLIC_KEY=os.environ.get("LANGFUSE_PUBLIC_KEY")
91
- LANGFUSE_HOST="https://us.cloud.langfuse.com"
92
-
93
  print("Langfuse Secret Key:", os.environ.get("LANGFUSE_SECRET_KEY"))
94
  print("Langfuse Public Key:", os.environ.get("LANGFUSE_PUBLIC_KEY"))
95
 
@@ -616,7 +611,7 @@ chain = ConversationalRetrievalChain.from_llm(
616
 
617
 
618
  # This below is for the interface
619
- @observe()
620
  def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
621
 
622
 
 
85
  host="https://us.cloud.langfuse.com"
86
  )
87
  from langfuse.decorators import observe
 
 
 
 
 
88
  print("Langfuse Secret Key:", os.environ.get("LANGFUSE_SECRET_KEY"))
89
  print("Langfuse Public Key:", os.environ.get("LANGFUSE_PUBLIC_KEY"))
90
 
 
611
 
612
 
613
  # This below is for the interface
614
+ @observe(name="chatbot_response", description="Handles user input and returns chatbot output")
615
  def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
616
 
617