Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ if st.session_state.current_index < len(samples):
|
|
82 |
current_element = samples[st.session_state.current_index]["text"].split(" ")
|
83 |
|
84 |
current_element=" ".join(current_element).strip().replace("\n","")
|
85 |
-
prompt = "You are a helpful assistant that echoes the user's input, but backwards, do not simply rearrange the words, reverse the user's input down to the character (e.g. reverse Hello World to dlroW olleH). Surround the backwards version of the user's input with <back> </back> tags
|
86 |
st.code(prompt)
|
87 |
true_output = current_element[::-1]
|
88 |
print("True output:", true_output)
|
|
|
82 |
current_element = samples[st.session_state.current_index]["text"].split(" ")
|
83 |
|
84 |
current_element=" ".join(current_element).strip().replace("\n","")
|
85 |
+
prompt = "You are a helpful assistant that echoes the user's input, but backwards, do not simply rearrange the words, reverse the user's input down to the character (e.g. reverse Hello World to dlroW olleH). Surround the backwards version of the user's input with <back> </back> tags: "+current_element
|
86 |
st.code(prompt)
|
87 |
true_output = current_element[::-1]
|
88 |
print("True output:", true_output)
|