tuan243 commited on
Commit
35c0e49
·
verified ·
1 Parent(s): 585ae8c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -20,7 +20,7 @@ if HF_TOKEN:
20
 
21
  # Load AI Model
22
  tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-base",token=HF_TOKEN)
23
- ai_model = AutoModelForCausalLM.from_pretrained("google/flan-t5-base",token=HF_TOKEN)
24
 
25
  app = FastAPI()
26
 
 
20
 
21
  # Load AI Model
22
  tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-base",token=HF_TOKEN)
23
+ ai_model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-base",token=HF_TOKEN)
24
 
25
  app = FastAPI()
26