crodri commited on
Commit
db0b878
verified
1 Parent(s): f9b9372

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -48,7 +48,7 @@ context = "Matar贸 茅s una ciutat de Catalunya, capital de la comarca del Maresm
48
 
49
  # We need to format the prompt and context using ### and \n
50
 
51
- def givePrediction(instruction, context, max_new_tokens=50, repetition_penalty=1.2, top_k=50, top_p=0.95, do_sample=True, temperature=0.5)
52
  text = f"### Instruction\n{{instruction}}\n### Context\n{{context}}\n### Answer\n"
53
  response = pipe(text.format(instruction=instruction, context=context),temperature=temperature,repetition_penalty=repetition_penalty, max_new_tokens=max_new_tokens,top_k=top_k, top_p=top_p, do_sample=do_sample)[0]["generated_text"]
54
  answer = response.split("###")[-1][8:-1]
 
48
 
49
  # We need to format the prompt and context using ### and \n
50
 
51
+ def givePrediction(instruction, context, max_new_tokens=50, repetition_penalty=1.2, top_k=50, top_p=0.95, do_sample=True, temperature=0.5):
52
  text = f"### Instruction\n{{instruction}}\n### Context\n{{context}}\n### Answer\n"
53
  response = pipe(text.format(instruction=instruction, context=context),temperature=temperature,repetition_penalty=repetition_penalty, max_new_tokens=max_new_tokens,top_k=top_k, top_p=top_p, do_sample=do_sample)[0]["generated_text"]
54
  answer = response.split("###")[-1][8:-1]