Spaces:
Running
Running
Myranda
commited on
Commit
·
f7c16f8
1
Parent(s):
d8873b1
Merge pull request #126 from vanderbilt-data-science/principles_writeup
Browse files
app.py
CHANGED
@@ -92,8 +92,8 @@ if authentication_status:
|
|
92 |
encrypted_api_key = str(encrypt(api_input, fernet))
|
93 |
st.session_state.api_key = api_input
|
94 |
|
95 |
-
principles = st.text_area("My Principles (Paste Principles here)", height =
|
96 |
-
writing_style = st.text_area("My Writing Style (Paste Examples)", height =
|
97 |
#sources = st.text_area("Sources (This autopopulates for your reference)", value=st.session_state.sources if 'sources' in st.session_state else '', key = 'sources_key', height = 100)
|
98 |
|
99 |
# Update button
|
|
|
92 |
encrypted_api_key = str(encrypt(api_input, fernet))
|
93 |
st.session_state.api_key = api_input
|
94 |
|
95 |
+
principles = st.text_area("My Principles (Paste Principles here)", height = 300, placeholder = "Think about the hate speech you want to counter. What makes you want to write back? Note any principles that are true to your heart, from an abstract thought to a well-defined concept. For ideas, consider: a theory, philosophy, law, policy, workplace professional ethic, cultural norm, family value, idiomatic saying, colloquialism, life lesson, habit, intuition, literary or artistic expression, fortune cookie message, etc.", value=user_data["principles"] if user_data and "principles" in user_data else "")
|
96 |
+
writing_style = st.text_area("My Writing Style (Paste Examples)", height = 300, placeholder = "Provide examples of your writing style here", value=user_data["writing_style"] if user_data and "writing_style" in user_data else "")
|
97 |
#sources = st.text_area("Sources (This autopopulates for your reference)", value=st.session_state.sources if 'sources' in st.session_state else '', key = 'sources_key', height = 100)
|
98 |
|
99 |
# Update button
|