Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -351,5 +351,6 @@ def run_docker_container(image_name, port):
|
|
| 351 |
return container
|
| 352 |
|
| 353 |
if __name__ == "__main__":
|
| 354 |
-
|
| 355 |
-
|
|
|
|
|
|
| 351 |
return container
|
| 352 |
|
| 353 |
if __name__ == "__main__":
|
| 354 |
+
with app.app_context():
|
| 355 |
+
db.create_all() # Create the database tables if they don't exist
|
| 356 |
+
app.run()
|