Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import csv
|
|
8 |
import requests
|
9 |
|
10 |
# Configuration variables
|
11 |
-
AIRTABLE_API_KEY =
|
12 |
|
13 |
# Airtable table names
|
14 |
policies_table_name = 'tbla6PC65qZfqdJhE'
|
@@ -24,7 +24,7 @@ border_radius = "10px"
|
|
24 |
response_label = f'<h3 style="color: {color}; background-color: {background_color}; border-radius: {border_radius}; padding: 10px;display: inline-block;">{label_text}</h3>'
|
25 |
|
26 |
# Initialize OpenAI
|
27 |
-
openai.api_key = "
|
28 |
|
29 |
base_id = 'appcUK3hUWC7GM2Kb'
|
30 |
|
|
|
8 |
import requests
|
9 |
|
10 |
# Configuration variables
|
11 |
+
AIRTABLE_API_KEY = os.getenv("AIRTABLE_API_KEY")
|
12 |
|
13 |
# Airtable table names
|
14 |
policies_table_name = 'tbla6PC65qZfqdJhE'
|
|
|
24 |
response_label = f'<h3 style="color: {color}; background-color: {background_color}; border-radius: {border_radius}; padding: 10px;display: inline-block;">{label_text}</h3>'
|
25 |
|
26 |
# Initialize OpenAI
|
27 |
+
openai.api_key = os.getenv("OPENAI_API_KEY")
|
28 |
|
29 |
base_id = 'appcUK3hUWC7GM2Kb'
|
30 |
|