Spaces:
Sleeping
Sleeping
pretzinger
commited on
Commit
•
b6bcc82
1
Parent(s):
d122a39
Added Guidelines dataset
Browse files
app.py
CHANGED
@@ -6,6 +6,9 @@ import os
|
|
6 |
import faiss
|
7 |
import numpy as np
|
8 |
import requests
|
|
|
|
|
|
|
9 |
|
10 |
# Load OpenAI and Serper API keys from Hugging Face secrets
|
11 |
openai.api_key = os.getenv("OPENAI_API_KEY") # Ensure the OpenAI API key is pulled correctly
|
|
|
6 |
import faiss
|
7 |
import numpy as np
|
8 |
import requests
|
9 |
+
import datasets import load_dataset
|
10 |
+
|
11 |
+
ds = load_dataset("epfl-llm/guidelines")
|
12 |
|
13 |
# Load OpenAI and Serper API keys from Hugging Face secrets
|
14 |
openai.api_key = os.getenv("OPENAI_API_KEY") # Ensure the OpenAI API key is pulled correctly
|