CreitinGameplays
commited on
Commit
•
26c842c
1
Parent(s):
ea47071
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def generate_text(user_prompt):
|
|
35 |
|
36 |
# Extract the assistant's response (assuming it starts with "<|assistant|>")
|
37 |
assistant_response = generated_text.split("<|assistant|>")[-1]
|
38 |
-
assistant_response = assistant_response.replace(f"{
|
39 |
assistant_response = assistant_response.replace("You are a helpful AI assistant.", "").strip()
|
40 |
|
41 |
return assistant_response
|
|
|
35 |
|
36 |
# Extract the assistant's response (assuming it starts with "<|assistant|>")
|
37 |
assistant_response = generated_text.split("<|assistant|>")[-1]
|
38 |
+
assistant_response = assistant_response.replace(f"{user_prompt}", "").strip()
|
39 |
assistant_response = assistant_response.replace("You are a helpful AI assistant.", "").strip()
|
40 |
|
41 |
return assistant_response
|