SergeyO7 commited on
Commit
ca0f47f
·
verified ·
1 Parent(s): bbd8d1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,7 +12,8 @@ import base64
12
 
13
  LANGFUSE_PUBLIC_KEY="pk-lf-133099c7-8644-49e8-8f6e-ec8bd6d543fd"
14
  LF_SECRET_KEY = LANGFUSE_SECRET_KEY
15
- LANGFUSE_AUTH=base64.b64encode(f"{LANGFUSE_PUBLIC_KEY}:{LF_SECRET_KEY}".encode()).decode()
 
16
 
17
  os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://cloud.langfuse.com/api/public/otel" # EU data region
18
  # os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://us.cloud.langfuse.com/api/public/otel" # US data region
@@ -302,7 +303,7 @@ agent = CodeAgent(
302
  tools=[final_answer, get_moon_info, get_current_time_in_timezone, get_current_time_raw, image_generation_tool],
303
  max_steps=6,
304
  verbosity_level=1,
305
- prompt_templates=prompt_templates
306
  safe_mode=True, # Enable safe code execution
307
  timeout=100, # Seconds before execution timeout
308
  max_memory=512, # MB memory limit
 
12
 
13
  LANGFUSE_PUBLIC_KEY="pk-lf-133099c7-8644-49e8-8f6e-ec8bd6d543fd"
14
  LF_SECRET_KEY = LANGFUSE_SECRET_KEY
15
+ LANGFUSE_AUTH=base64
16
+ .b64encode(f"{LANGFUSE_PUBLIC_KEY}:{LF_SECRET_KEY}".encode()).decode()
17
 
18
  os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://cloud.langfuse.com/api/public/otel" # EU data region
19
  # os.environ["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://us.cloud.langfuse.com/api/public/otel" # US data region
 
303
  tools=[final_answer, get_moon_info, get_current_time_in_timezone, get_current_time_raw, image_generation_tool],
304
  max_steps=6,
305
  verbosity_level=1,
306
+ prompt_templates=prompt_templates,
307
  safe_mode=True, # Enable safe code execution
308
  timeout=100, # Seconds before execution timeout
309
  max_memory=512, # MB memory limit