NaimaAqeel commited on
Commit
18cd638
·
verified ·
1 Parent(s): 773aab2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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