main.py 242 B

12345678910
  1. from train import train_model
  2. from api import app
  3. if __name__ == "__main__":
  4. choice = input("1 - Обучение модели; 2 - Запуск сервера\n")
  5. if choice == "1":
  6. train_model()
  7. else:
  8. app.run()