Vitrous commited on
Commit
b2c8fa4
·
verified ·
1 Parent(s): 7d5c2ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -63,10 +63,10 @@ def generate_response(prompt: str) -> str:
63
  top_k=40,
64
  repetition_penalty=1.1
65
  )
66
- generated_text = pipe(prompt_template)[0]['generated_text']
67
 
68
  # Remove the "ASSISTANT:" prefix from the generated text
69
- assistant_response = generated_text.replace("ASSISTANT:", "").strip()
70
 
71
  return {"user": prompt, "assistant": assistant_response}
72
 
 
63
  top_k=40,
64
  repetition_penalty=1.1
65
  )
66
+ generated_text = pipe(prompt_template)[0]['generated_text']
67
 
68
  # Remove the "ASSISTANT:" prefix from the generated text
69
+ assistant_response = generated_text.replace("ASSISTANT:", "").strip()
70
 
71
  return {"user": prompt, "assistant": assistant_response}
72