acecalisto3 commited on
Commit
4a1a82b
1 Parent(s): 5bdcc75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -351,5 +351,6 @@ def run_docker_container(image_name, port):
351
  return container
352
 
353
  if __name__ == "__main__":
354
- db.create_all() # Create the database tables if they don't exist
355
- main()
 
 
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()