Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|