Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def predict(instruction, topp, max_new_tokens, temperature):
|
|
20 |
temperature=temperature
|
21 |
)[0]["generated_text"]
|
22 |
|
23 |
-
return x
|
24 |
|
25 |
iface = gr.Interface(fn=predict, inputs=["text",
|
26 |
gr.inputs.Slider(0, 3, default=0.90, label="top_p"),
|
|
|
20 |
temperature=temperature
|
21 |
)[0]["generated_text"]
|
22 |
|
23 |
+
return x[len(instruction):]
|
24 |
|
25 |
iface = gr.Interface(fn=predict, inputs=["text",
|
26 |
gr.inputs.Slider(0, 3, default=0.90, label="top_p"),
|