Spaces:
Sleeping
Sleeping
Robustness and docs
Browse files- pages/1_Rewrite.py +3 -2
pages/1_Rewrite.py
CHANGED
@@ -3,8 +3,9 @@ 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", "", help="Paste your document here")
|
|
|
8 |
rewrite_in_progress = st.text_area("Rewrite in progress", key='rewrite_in_progress', value="")
|
9 |
|
10 |
if doc.strip() == "" and rewrite_in_progress.strip() == "":
|
|
|
3 |
import html
|
4 |
|
5 |
|
6 |
+
prompt = st.text_area("Prompt", "Rewrite this document to be more clear and concise.", help="Instructions for what the bot should do.")
|
7 |
+
doc = st.text_area("Document", "", help="Paste your document here.")
|
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() == "":
|