JaphetHernandez commited on
Commit
d120fce
·
verified ·
1 Parent(s): 653f52a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -16,7 +16,9 @@ model_name = "meta-llama/Llama-3.2-1B"
16
  model = AutoModelForCausalLM.from_pretrained(model_name)
17
  tokenizer = AutoTokenizer.from_pretrained(model_name)
18
 
19
- pipe = pipeline(task = 'text-generation', model=model, tokenizer=tokenizer, max_length = 512) # Check documentation without "feature-extraction"
 
 
20
 
21
  # Use transformers pipeline
22
  llm_pipeline = HuggingFacePipeline(pipeline=pipe)
 
16
  model = AutoModelForCausalLM.from_pretrained(model_name)
17
  tokenizer = AutoTokenizer.from_pretrained(model_name)
18
 
19
+ pipe = pipeline(model=model, tokenizer=tokenizer, max_length = 512) # Check documentation without "feature-extraction"
20
+ #pipe = pipeline(task = 'text-generation', model=model, tokenizer=tokenizer, max_length = 512) # Check documentation without "feature-extraction"
21
+
22
 
23
  # Use transformers pipeline
24
  llm_pipeline = HuggingFacePipeline(pipeline=pipe)