Spaces:
Running
Running
I need more energy drinks!
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ theme = gr.themes.Monochrome(
|
|
37 |
|
38 |
def generate(instruction):
|
39 |
result = ""
|
40 |
-
for x in llm(ins.format(instruction), max_tokens=2048,
|
41 |
result += x['choices'][0]['text']
|
42 |
yield result
|
43 |
|
|
|
37 |
|
38 |
def generate(instruction):
|
39 |
result = ""
|
40 |
+
for x in llm(ins.format(instruction), max_tokens=2048, stop=['### Instruction:', '### End'], stream=True):
|
41 |
result += x['choices'][0]['text']
|
42 |
yield result
|
43 |
|