Meshari21 commited on
Commit
660ae67
·
verified ·
1 Parent(s): 5a27270

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -645,5 +645,10 @@ with gr.Blocks(css=open("styles.css", "r").read(), theme="soft") as app:
645
  outputs=[login_output, main_panel, login_page, header_row, previous_patient]
646
  )
647
 
648
- init_db()
649
- app.launch()
 
 
 
 
 
 
645
  outputs=[login_output, main_panel, login_page, header_row, previous_patient]
646
  )
647
 
648
+ def main():
649
+ init_db()
650
+ app.launch()
651
+
652
+ if __name__ == "__main__":
653
+ main()
654
+