HyperX-Sen commited on
Commit
2551572
·
verified ·
1 Parent(s): a4f9a8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def chat_response(user_input, top_p, top_k, temperature, max_length):
72
  )
73
 
74
  full_response = tokenizer.decode(output[0], skip_special_tokens=True)
75
- return extract_response(full_response)
76
 
77
  # 🔹 Gradio UI
78
  with gr.Blocks() as demo:
 
72
  )
73
 
74
  full_response = tokenizer.decode(output[0], skip_special_tokens=True)
75
+ return extract_response(full_response.replace(SYSTEM_PROMPT, ""))
76
 
77
  # 🔹 Gradio UI
78
  with gr.Blocks() as demo: