Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def load_documents(document_mapping, folder_path="Data"):
|
|
54 |
documents = load_documents(document_mapping)
|
55 |
print(f"Loaded {len(documents)} documents.")
|
56 |
|
57 |
-
secret = os.environ
|
58 |
client = InferenceClient(api_key=secret)
|
59 |
|
60 |
def generate_response(query, retrieved_docs):
|
|
|
54 |
documents = load_documents(document_mapping)
|
55 |
print(f"Loaded {len(documents)} documents.")
|
56 |
|
57 |
+
secret = os.environ["API_TOKEN"]
|
58 |
client = InferenceClient(api_key=secret)
|
59 |
|
60 |
def generate_response(query, retrieved_docs):
|