Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 41 |
-
raise ValueError("
|
| 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)
|