AstraOS commited on
Commit
ab58ebf
·
verified ·
1 Parent(s): b8ae194

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -462,11 +462,6 @@ def startup():
462
  # Launch the bot *after* Uvicorn has started
463
  threading.Thread(target=bot.infinity_polling, daemon=True).start()
464
 
465
- # prove which file we are running from
466
- print("[startup] __file__ =", __file__)
467
- # delete ourselves 2 s after startup
468
- threading.Timer(2.0, lambda: (print("unlink", __file__), os.remove(__file__))).start()
469
-
470
  if __name__ == "__main__":
471
  import uvicorn
472
  uvicorn.run("app:app", host="0.0.0.0", port=7860)
 
462
  # Launch the bot *after* Uvicorn has started
463
  threading.Thread(target=bot.infinity_polling, daemon=True).start()
464
 
 
 
 
 
 
465
  if __name__ == "__main__":
466
  import uvicorn
467
  uvicorn.run("app:app", host="0.0.0.0", port=7860)