Abdelmageed commited on
Commit
7c97898
1 Parent(s): 4ec868f
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,8 +57,8 @@ def demo_smg(company_name ,description , example1 , example2 , example3):
57
  model_cp= T5ForConditionalGeneration.from_pretrained("Abdelmageed95/caption_model" , use_auth_token = access_token )
58
  tokenizer = T5Tokenizer.from_pretrained('t5-base')
59
 
60
- model_bm = AutoModelForCausalLM.from_pretrained("bigscience/bloom-3b" , use_auth_token = access_token)
61
- tokenizer_bm = AutoTokenizer.from_pretrained("bigscience/bloom-3b")
62
 
63
  res = generate_post( model_bm , tokenizer_bm, company_name , description , example1 , example2 , example3)
64
  generated_caption = generate_caption( model_cp ,
 
57
  model_cp= T5ForConditionalGeneration.from_pretrained("Abdelmageed95/caption_model" , use_auth_token = access_token )
58
  tokenizer = T5Tokenizer.from_pretrained('t5-base')
59
 
60
+ model_bm = AutoModelForCausalLM.from_pretrained("bigscience/bloom-560m" , use_auth_token = access_token)
61
+ tokenizer_bm = AutoTokenizer.from_pretrained("bigscience/bloom-560m")
62
 
63
  res = generate_post( model_bm , tokenizer_bm, company_name , description , example1 , example2 , example3)
64
  generated_caption = generate_caption( model_cp ,