Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ embedding_model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
39 |
# Hugging Face API token
|
40 |
api_token = os.getenv('HUGGINGFACEHUB_API_TOKEN')
|
41 |
if not api_token:
|
42 |
-
raise ValueError("HUGGINGFACEHUB_API_TOKEN environment variable is not set")
|
43 |
|
44 |
# Initialize the HuggingFace LLM
|
45 |
llm = HuggingFaceEndpoint(
|
@@ -195,6 +195,7 @@ demo.launch()
|
|
195 |
|
196 |
|
197 |
|
|
|
198 |
|
199 |
|
200 |
|
|
|
39 |
# Hugging Face API token
|
40 |
api_token = os.getenv('HUGGINGFACEHUB_API_TOKEN')
|
41 |
if not api_token:
|
42 |
+
raise ValueError("HUGGINGFACEHUB_API_TOKEN environment variable is not set or invalid")
|
43 |
|
44 |
# Initialize the HuggingFace LLM
|
45 |
llm = HuggingFaceEndpoint(
|
|
|
195 |
|
196 |
|
197 |
|
198 |
+
|
199 |
|
200 |
|
201 |
|