Spaces:
sahanind
/
No application file

sahanind commited on
Commit
8d24dd9
·
verified ·
1 Parent(s): 45f4182

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -12
app.py CHANGED
@@ -563,16 +563,4 @@ def start_flask_app():
563
  app.run(debug=True, use_reloader=False, host="0.0.0.0", port=7860)
564
 
565
  if __name__ == '__main__':
566
- loop = asyncio.new_event_loop()
567
- asyncio.set_event_loop(loop)
568
- print('1')
569
- try:
570
- # Run the async task
571
- loop.run_until_complete(downdb())
572
- finally:
573
- loop.close()
574
-
575
- # Now start the Flask app after async task finishes
576
- time.sleep(60)
577
- print('2')
578
  start_flask_app()
 
563
  app.run(debug=True, use_reloader=False, host="0.0.0.0", port=7860)
564
 
565
  if __name__ == '__main__':
 
 
 
 
 
 
 
 
 
 
 
 
566
  start_flask_app()