Update README.md
Browse files
README.md
CHANGED
@@ -44,7 +44,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
44 |
model = AutoModelForCausalLM.from_pretrained(model_id).to("cuda")
|
45 |
|
46 |
|
47 |
-
def create_instruction(instruction
|
48 |
sections = {
|
49 |
"Instrucción": instruction,
|
50 |
"Entrada": input_data,
|
@@ -63,7 +63,6 @@ def create_instruction(instruction: str, input_data: str = None, context: str =
|
|
63 |
return prompt
|
64 |
|
65 |
|
66 |
-
|
67 |
def generate(
|
68 |
instruction,
|
69 |
input=None,
|
|
|
44 |
model = AutoModelForCausalLM.from_pretrained(model_id).to("cuda")
|
45 |
|
46 |
|
47 |
+
def create_instruction(instruction, input_data=None, context=None):
|
48 |
sections = {
|
49 |
"Instrucción": instruction,
|
50 |
"Entrada": input_data,
|
|
|
63 |
return prompt
|
64 |
|
65 |
|
|
|
66 |
def generate(
|
67 |
instruction,
|
68 |
input=None,
|