Spaces:
Running
Running
david-oplatka
commited on
Commit
•
9121186
1
Parent(s):
0f3a499
Change API Key Config
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ headers = {
|
|
21 |
'Content-Type': 'application/json',
|
22 |
'Accept': '*/*'
|
23 |
}
|
|
|
24 |
|
25 |
initial_prompt = "How can I help you today?"
|
26 |
|
@@ -110,7 +111,7 @@ def launch_bot():
|
|
110 |
|
111 |
# Send query to Amplitude Analytics
|
112 |
data = {
|
113 |
-
"api_key":
|
114 |
"events": [{
|
115 |
"device_id": device_id,
|
116 |
"event_type": "submitted_query",
|
|
|
21 |
'Content-Type': 'application/json',
|
22 |
'Accept': '*/*'
|
23 |
}
|
24 |
+
amp_api_key = os.getenv('AMPLITUDE_TOKEN')
|
25 |
|
26 |
initial_prompt = "How can I help you today?"
|
27 |
|
|
|
111 |
|
112 |
# Send query to Amplitude Analytics
|
113 |
data = {
|
114 |
+
"api_key": amp_api_key,
|
115 |
"events": [{
|
116 |
"device_id": device_id,
|
117 |
"event_type": "submitted_query",
|