Update app/model_handler.py
Browse files19 unmodified lines202122232324252619 unmodified lines global model, tokenizer try: logger.info("Đang tải mô hình sửa lỗi chính tả") model_path = "/home/pmcd/Hoai/model_vietnamcorrection" model_path = "hHoai/spellcheck" model = AutoModelForSeq2SeqLM.from_pretrained(model_path).to("cuda:0") # Sử dụng GPU nếu có tokenizer = AutoTokenizer.from_pretrained(model_path) logger.info("Đã tải mô hình thành công")app/model_handler.py+1-1