Vitrous commited on
Commit
3d839c1
·
verified ·
1 Parent(s): 3947efb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,10 +61,10 @@ def generate_response(prompt: str) -> str:
61
  top_k=40,
62
  repetition_penalty=1.1
63
  )
64
- generated_text = pipe(prompt_template + user_prompt)[0]['generated_text']
65
 
66
 
67
- return {"user": prompt, "assistant": generated_text}
68
 
69
 
70
  def generate_prompt_response(persona_prompt: str, prompt: str) -> dict:
 
61
  top_k=40,
62
  repetition_penalty=1.1
63
  )
64
+ pipe(prompt_template + user_prompt)
65
 
66
 
67
+ return {"user": prompt, "assistant": [0]['generated_text']}
68
 
69
 
70
  def generate_prompt_response(persona_prompt: str, prompt: str) -> dict: