Spaces:
Running
Running
acecalisto3
commited on
Commit
•
4a1a82b
1
Parent(s):
5bdcc75
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()
|