Spaces:
Sleeping
Sleeping
Alejadro Sanchez-Giraldo
commited on
Commit
•
8f89bb0
1
Parent(s):
4f516f9
remove copilot code
Browse files
app.py
CHANGED
@@ -10,17 +10,6 @@ ld_sdk_key = os.getenv("LAUNCHDARKLY_SDK_KEY")
|
|
10 |
# Initialize LaunchDarkly client with the correct configuration
|
11 |
ld_client = LDClient(Config(ld_sdk_key))
|
12 |
|
13 |
-
# Set the user context for LaunchDarkly
|
14 |
-
user = {
|
15 |
-
"key": "test-user",
|
16 |
-
"custom": {
|
17 |
-
"groups": "beta_testers"
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
context = Context(user)
|
22 |
-
|
23 |
-
|
24 |
# Function to get the AI model configuration from LaunchDarkly
|
25 |
def get_model_config():
|
26 |
flag_key = "model-swap" # Replace with your flag key
|
|
|
10 |
# Initialize LaunchDarkly client with the correct configuration
|
11 |
ld_client = LDClient(Config(ld_sdk_key))
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# Function to get the AI model configuration from LaunchDarkly
|
14 |
def get_model_config():
|
15 |
flag_key = "model-swap" # Replace with your flag key
|