Spaces:
Running
Running
clean up login ui
Browse files
Home.py
CHANGED
@@ -9,14 +9,17 @@ def login():
|
|
9 |
# skip customize user name for debug mode
|
10 |
|
11 |
with st.form("user_login"):
|
12 |
-
st.write('## Enter Your Name to Start the Session')
|
|
|
|
|
|
|
13 |
user_id = st.text_input(
|
14 |
"Enter your name π",
|
15 |
label_visibility='collapsed',
|
16 |
disabled=False,
|
17 |
-
placeholder='anonymous'
|
18 |
)
|
19 |
-
st.write('You can leave it blank to be anonymous.')
|
20 |
|
21 |
st.session_state.show_NSFW = st.toggle(':orange[show potentially mature content]', help='Inevitably, a few images might be NSFW, even if we tried to elimiate NFSW content in our prompts. We calculate a NSFW score to filter them out. Please check only if you are 18+ and want to take a look at the whole GEMRec-18k dataset', value=False, key='mature_content')
|
22 |
|
@@ -49,7 +52,6 @@ def logout():
|
|
49 |
def info():
|
50 |
with st.sidebar:
|
51 |
st.write('## About')
|
52 |
-
|
53 |
# st.write(
|
54 |
# "This is an web application to collect personal preference to images synthesised by generative models fine-tuned on stable diffusion. \
|
55 |
# **You might consider it as a tool for quickly digging out the most suitable text-to-image generation model for you from [civitai](https://civitai.com/).**"
|
@@ -57,7 +59,6 @@ def info():
|
|
57 |
# st.write(
|
58 |
# "After you picking images from gallery page, and ranking them in the ranking page, you will be able to see a dashboard showing your preferred models in the summary page, **with download links of the models ready to use in [Automatic1111 webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)!**"
|
59 |
# )
|
60 |
-
|
61 |
st.write(
|
62 |
"**This is a web application for individual users to quickly dig out the most suitable text-to-image generation model from [civitai](https://civitai.com).** Our research aims to understand personal preference to images synthesized by generative models fine-tuned on stable diffusion and you can contribute by playing with this tool and giving us your feedback! "
|
63 |
)
|
@@ -77,8 +78,8 @@ if __name__ == '__main__':
|
|
77 |
# Want to find the most suitable one for your taste? \n \
|
78 |
# **GEMRec** is here to help you!"
|
79 |
# )
|
80 |
-
st.write('### Getting obsessed with tons of different text-to-image generation models available online? Want to find the most suitable one for your taste?')
|
81 |
-
st.write('**GEMRec** is here to help you! Try it out now π!')
|
82 |
|
83 |
if 'user_id' not in st.session_state:
|
84 |
login()
|
@@ -88,7 +89,7 @@ if __name__ == '__main__':
|
|
88 |
st.button('Log out', on_click=logout)
|
89 |
|
90 |
st.write('---')
|
91 |
-
st.write('
|
92 |
with st.expander(label='**π€ How to use this webapp?**'):
|
93 |
st.write('### Check out the demo video below')
|
94 |
st.video('https://youtu.be/EjjCoeUSZF0')
|
|
|
9 |
# skip customize user name for debug mode
|
10 |
|
11 |
with st.form("user_login"):
|
12 |
+
# st.write('## Enter Your Name to Start the Session')
|
13 |
+
st.write(
|
14 |
+
'### Getting obsessed with tons of different text-to-image generation models available online? Want to find the most suitable one for your taste?')
|
15 |
+
st.write('**GEMRec** is here to help you! Enter your name to try it outπ!')
|
16 |
user_id = st.text_input(
|
17 |
"Enter your name π",
|
18 |
label_visibility='collapsed',
|
19 |
disabled=False,
|
20 |
+
placeholder='You can leave it blank to be anonymous'
|
21 |
)
|
22 |
+
# st.write('You can leave it blank to be anonymous.')
|
23 |
|
24 |
st.session_state.show_NSFW = st.toggle(':orange[show potentially mature content]', help='Inevitably, a few images might be NSFW, even if we tried to elimiate NFSW content in our prompts. We calculate a NSFW score to filter them out. Please check only if you are 18+ and want to take a look at the whole GEMRec-18k dataset', value=False, key='mature_content')
|
25 |
|
|
|
52 |
def info():
|
53 |
with st.sidebar:
|
54 |
st.write('## About')
|
|
|
55 |
# st.write(
|
56 |
# "This is an web application to collect personal preference to images synthesised by generative models fine-tuned on stable diffusion. \
|
57 |
# **You might consider it as a tool for quickly digging out the most suitable text-to-image generation model for you from [civitai](https://civitai.com/).**"
|
|
|
59 |
# st.write(
|
60 |
# "After you picking images from gallery page, and ranking them in the ranking page, you will be able to see a dashboard showing your preferred models in the summary page, **with download links of the models ready to use in [Automatic1111 webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)!**"
|
61 |
# )
|
|
|
62 |
st.write(
|
63 |
"**This is a web application for individual users to quickly dig out the most suitable text-to-image generation model from [civitai](https://civitai.com).** Our research aims to understand personal preference to images synthesized by generative models fine-tuned on stable diffusion and you can contribute by playing with this tool and giving us your feedback! "
|
64 |
)
|
|
|
78 |
# Want to find the most suitable one for your taste? \n \
|
79 |
# **GEMRec** is here to help you!"
|
80 |
# )
|
81 |
+
# st.write('### Getting obsessed with tons of different text-to-image generation models available online? Want to find the most suitable one for your taste?')
|
82 |
+
# st.write('**GEMRec** is here to help you! Try it out now π!')
|
83 |
|
84 |
if 'user_id' not in st.session_state:
|
85 |
login()
|
|
|
89 |
st.button('Log out', on_click=logout)
|
90 |
|
91 |
st.write('---')
|
92 |
+
st.write('### FAQ')
|
93 |
with st.expander(label='**π€ How to use this webapp?**'):
|
94 |
st.write('### Check out the demo video below')
|
95 |
st.video('https://youtu.be/EjjCoeUSZF0')
|