s3nh commited on
Commit
71ff089
1 Parent(s): c6d7a45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -34,16 +34,13 @@ def generate_prompt(instruction, input=None):
34
 
35
  ### Response:"""
36
  else:
37
- return f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
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):