Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,12 +12,12 @@ from langchain.text_splitter import CharacterTextSplitter
|
|
| 12 |
from langchain.docstore.document import Document
|
| 13 |
|
| 14 |
# Set up API keys
|
| 15 |
-
AIRTABLE_API_KEY = os.getenv
|
| 16 |
-
OPENAI_API_KEY = os.getenv
|
| 17 |
|
| 18 |
-
base_id = os.getenv
|
| 19 |
-
table_id = os.getenv
|
| 20 |
-
view = os.getenv
|
| 21 |
|
| 22 |
def load_airtable_data() -> List[Dict]:
|
| 23 |
"""Load data from Airtable and return as a list of dictionaries."""
|
|
|
|
| 12 |
from langchain.docstore.document import Document
|
| 13 |
|
| 14 |
# Set up API keys
|
| 15 |
+
AIRTABLE_API_KEY = os.getenv("AIRTABLE_API_KEY")
|
| 16 |
+
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
| 17 |
|
| 18 |
+
base_id = os.getenv("base_id")
|
| 19 |
+
table_id = os.getenv("table_id")
|
| 20 |
+
view = os.getenv("view")
|
| 21 |
|
| 22 |
def load_airtable_data() -> List[Dict]:
|
| 23 |
"""Load data from Airtable and return as a list of dictionaries."""
|