SergeyO7 commited on
Commit
5d12401
·
verified ·
1 Parent(s): 2000849

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -13,7 +13,9 @@ import base64
13
  # --- Constants ---
14
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
15
  LANGFUSE_PUBLIC_KEY="pk-lf-7f0677a5-09f7-4508-88a2-bf7f44ee172c"
16
- LF_SECRET_KEY = os.environ.get["LANGFUSE_SECRET_KEY"]
 
 
17
  LANGFUSE_AUTH=base64.b64encode(f"{LANGFUSE_PUBLIC_KEY}:{LF_SECRET_KEY}".encode()).decode()
18
 
19
  from opentelemetry.sdk.trace import TracerProvider
@@ -191,5 +193,5 @@ if __name__ == "__main__":
191
 
192
  print("-"*(60 + len(" App Starting ")) + "\n")
193
 
194
- print("Launching Gradio Interface for Basic Agent Evaluation...")
195
  demo.launch(debug=True, share=False)
 
13
  # --- Constants ---
14
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
15
  LANGFUSE_PUBLIC_KEY="pk-lf-7f0677a5-09f7-4508-88a2-bf7f44ee172c"
16
+ LF_SECRET_KEY = os.environ.get("LANGFUSE_SECRET_KEY")
17
+ if LF_SECRET_KEY is None:
18
+ raise EnvironmentError("LANGFUSE_SECRET_KEY environment variable is not set.")
19
  LANGFUSE_AUTH=base64.b64encode(f"{LANGFUSE_PUBLIC_KEY}:{LF_SECRET_KEY}".encode()).decode()
20
 
21
  from opentelemetry.sdk.trace import TracerProvider
 
193
 
194
  print("-"*(60 + len(" App Starting ")) + "\n")
195
 
196
+ print("Launching Gradio Interface for Mag Agent Evaluation...")
197
  demo.launch(debug=True, share=False)