Monster commited on
Commit
2558343
1 Parent(s): c6e9e12
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,9 +45,9 @@ def generate(
45
  top_k=40,):
46
  result = ""
47
  if input:
48
- ins_inp(instruction, input)
49
  else:
50
- ins.format(instruction)
51
  for x in llm(instruction, stop=['### Instruction:', '### End'], stream=True, temperature=temperature, top_p=top_p, top_k=top_k):
52
  result += x['choices'][0]['text']
53
  yield result
 
45
  top_k=40,):
46
  result = ""
47
  if input:
48
+ instruction = ins_inp.format(instruction, input)
49
  else:
50
+ instruction = ins.format(instruction)
51
  for x in llm(instruction, stop=['### Instruction:', '### End'], stream=True, temperature=temperature, top_p=top_p, top_k=top_k):
52
  result += x['choices'][0]['text']
53
  yield result