vkumartr commited on
Commit
d9dd3ec
·
verified ·
1 Parent(s): 553ae8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,8 +37,8 @@ use_gpu = False
37
  output_dir = 'output'
38
 
39
  # Check if environment variables are set
40
- if not all([MONGODB_URI, AWS_ACCESS_KEY, AWS_SECRET_KEY, S3_BUCKET_NAME, API_KEY, openai.api_key]):
41
- raise ValueError("One or more required environment variables are not set.")
42
 
43
  # Initialize MongoDB Connection
44
  client = MongoClient(MONGODB_URI)
 
37
  output_dir = 'output'
38
 
39
  # Check if environment variables are set
40
+ if not MONGODB_URI:
41
+ raise ValueError("MONGODB_URL is not set. Please add it to Hugging Face secrets.")
42
 
43
  # Initialize MongoDB Connection
44
  client = MongoClient(MONGODB_URI)