Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -24,7 +24,7 @@ ALLOWED_EXTENSIONS = set(['png', 'jpg', 'jpeg'])
|
|
24 |
# Connect to MongoDB Atlas
|
25 |
client = MongoClient("mongodb+srv://test:[email protected]/?retryWrites=true&w=majority")
|
26 |
db = client['brain_tumor_detection'] # Database name
|
27 |
-
collection = db['
|
28 |
|
29 |
def allowed_file(filename):
|
30 |
"""Check if the file is a valid image format (png, jpg, jpeg)."""
|
|
|
24 |
# Connect to MongoDB Atlas
|
25 |
client = MongoClient("mongodb+srv://test:[email protected]/?retryWrites=true&w=majority")
|
26 |
db = client['brain_tumor_detection'] # Database name
|
27 |
+
collection = db['btpredictions'] # Collection name
|
28 |
|
29 |
def allowed_file(filename):
|
30 |
"""Check if the file is a valid image format (png, jpg, jpeg)."""
|