Spaces:
Running
Running
Documentation
Browse files- pages/1_Rewrite.py +3 -3
pages/1_Rewrite.py
CHANGED
@@ -3,10 +3,10 @@ import pandas as pd
|
|
3 |
import html
|
4 |
|
5 |
|
6 |
-
prompt = st.text_area("Prompt", "Rewrite this document to be more clear and concise.",
|
7 |
-
doc = st.text_area("Document", "",
|
8 |
st.button("Update document")
|
9 |
-
rewrite_in_progress = st.text_area("Rewrite in progress", key='rewrite_in_progress', value="")
|
10 |
|
11 |
if doc.strip() == "" and rewrite_in_progress.strip() == "":
|
12 |
# Allow partial rewrites as a hack to enable autocomplete from the prompt
|
|
|
3 |
import html
|
4 |
|
5 |
|
6 |
+
prompt = st.text_area("Prompt", "Rewrite this document to be more clear and concise.", placeholder="Instructions for what the bot should do.")
|
7 |
+
doc = st.text_area("Document", "", placeholder="Paste your document here.")
|
8 |
st.button("Update document")
|
9 |
+
rewrite_in_progress = st.text_area("Rewrite in progress", key='rewrite_in_progress', value="", placeholder="Clicking the buttons below will update this field. You can also edit it directly; press Ctrl+Enter to apply changes.")
|
10 |
|
11 |
if doc.strip() == "" and rewrite_in_progress.strip() == "":
|
12 |
# Allow partial rewrites as a hack to enable autocomplete from the prompt
|