Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def respond(
|
|
35 |
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
36 |
last_space_index = outputs[0]["generated_text"].rfind('[/INST]')
|
37 |
# Extract the substring after the last space character
|
38 |
-
substring_after_last_space = outputs[0]["generated_text"][last_space_index +
|
39 |
yield substring_after_last_space
|
40 |
|
41 |
|
|
|
35 |
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
36 |
last_space_index = outputs[0]["generated_text"].rfind('[/INST]')
|
37 |
# Extract the substring after the last space character
|
38 |
+
substring_after_last_space = outputs[0]["generated_text"][last_space_index + 7:]
|
39 |
yield substring_after_last_space
|
40 |
|
41 |
|