Merge pull request #749 from Hafiidz/placeholder

Added placeholder text to input field similar to gradio UI.
This commit is contained in:
ZeroCool 2022-09-06 22:49:08 -07:00 committed by GitHub
commit 00d36bfabb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1510,7 +1510,7 @@ def layout():
input_col1, generate_col1 = st.columns([10,1])
with input_col1:
#prompt = st.text_area("Input Text","")
prompt = st.text_input("Input Text","")
prompt = st.text_input("Input Text","", placeholder="A corgi wearing a top hat as an oil painting.")
# Every form must have a submit button, the extra blank spaces is a temp way to align it with the input field. Needs to be done in CSS or some other way.
generate_col1.write("")
@ -1621,7 +1621,7 @@ def layout():
img2img_input_col, img2img_generate_col = st.columns([10,1])
with img2img_input_col:
#prompt = st.text_area("Input Text","")
prompt = st.text_input("Input Text","")
prompt = st.text_input("Input Text","", placeholder="A corgi wearing a top hat as an oil painting.")
# Every form must have a submit button, the extra blank spaces is a temp way to align it with the input field. Needs to be done in CSS or some other way.
img2img_generate_col.write("")