wiwaaw commited on
Commit
4441659
1 Parent(s): a6089d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,7 +11,8 @@ import base64
11
  #model_checkpoint = "LaMini-Flan-T5-248M"
12
  model_checkpoint = "MBZUAI/LaMini-Flan-T5-783M"
13
  model_tokenizer = T5Tokenizer.from_pretrained(model_checkpoint)
14
- model = T5ForConditionalGeneration.from_pretrained(model_checkpoint, device_map='auto', torch_dtype=torch.float32)
 
15
 
16
  #REPO_ID = "MBZUAI/LaMini-Flan-T5-783M"
17
  #model = pipeline(task='summarization', model=REPO_ID, token=access_token)
 
11
  #model_checkpoint = "LaMini-Flan-T5-248M"
12
  model_checkpoint = "MBZUAI/LaMini-Flan-T5-783M"
13
  model_tokenizer = T5Tokenizer.from_pretrained(model_checkpoint)
14
+ #model = T5ForConditionalGeneration.from_pretrained(model_checkpoint, device_map='auto', torch_dtype=torch.float32)
15
+ model = T5ForConditionalGeneration.from_pretrained(model_checkpoint)
16
 
17
  #REPO_ID = "MBZUAI/LaMini-Flan-T5-783M"
18
  #model = pipeline(task='summarization', model=REPO_ID, token=access_token)