kimou605 commited on
Commit
3518906
1 Parent(s): 6438af5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 + 6:]
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