Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,16 +34,13 @@ def generate_prompt(instruction, input=None):
|
|
34 |
|
35 |
### Response:"""
|
36 |
else:
|
37 |
-
return f"""
|
38 |
|
39 |
### Instruction:
|
40 |
{instruction}
|
41 |
|
42 |
### Response:"""
|
43 |
|
44 |
-
# model= load_model(name = 's3nh/pythia-410m-70k-steps-self-instruct-polish')
|
45 |
-
# tokenizer = load_tokenizer(name = 's3nh/pythia-410m-70k-steps-self-instruct-polish')
|
46 |
-
generation_config = create_generator()
|
47 |
|
48 |
|
49 |
def evaluate(instruction, input, model, tokenizer, generation_config):
|
|
|
34 |
|
35 |
### Response:"""
|
36 |
else:
|
37 |
+
return f"""Na podstawie instrukcji oraz kontekstu przekaż odpowiedź na zadane pytanie.
|
38 |
|
39 |
### Instruction:
|
40 |
{instruction}
|
41 |
|
42 |
### Response:"""
|
43 |
|
|
|
|
|
|
|
44 |
|
45 |
|
46 |
def evaluate(instruction, input, model, tokenizer, generation_config):
|