Spaces:
Sleeping
Sleeping
oh
Browse files
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
|