JVice commited on
Commit
bff3394
·
verified ·
1 Parent(s): d00a01f

Added hyperlink to most downloaded T2I models on HF

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -32,7 +32,8 @@ def setup_page_banner():
32
  def setup_how_to():
33
  expander = st.expander("How to Use")
34
  expander.write("1. Watch our tutorial video series on [YouTube](https://www.youtube.com/channel/UCk-0xyUyT0MSd_hkp4jQt1Q) (Note that the tutorial series was developed for V1.0) \n"
35
- "2. Navigate to the '\U0001F527 Setup' tab and input the ID of the HuggingFace \U0001F917 T2I model you want to evaluate\n")
 
36
  expander.image(Image.open('./assets/HF_MODEL_ID_EXAMPLE.png'))
37
  expander.write("3. Test your chosen model by generating an image using an input prompt e.g.: 'A corgi with some cool sunglasses'\n")
38
  expander.image(Image.open('./assets/lykon_corgi.png'))
@@ -224,7 +225,8 @@ tab5.write("Waiting for \U0001F527 Setup to be complete...")
224
  with tab1:
225
  with st.form("model_definition_form", clear_on_submit=True):
226
  modelID = st.text_input('Input the HuggingFace \U0001F917 T2I model_id for the model you '
227
- 'want to analyse e.g.: "runwayml/stable-diffusion-v1-5"')
 
228
  submitted1 = st.form_submit_button("Submit")
229
  if modelID:
230
  with st.spinner('Checking if ' + modelID + ' is valid and downloading it (if required)'):
 
32
  def setup_how_to():
33
  expander = st.expander("How to Use")
34
  expander.write("1. Watch our tutorial video series on [YouTube](https://www.youtube.com/channel/UCk-0xyUyT0MSd_hkp4jQt1Q) (Note that the tutorial series was developed for V1.0) \n"
35
+ "2. Navigate to the '\U0001F527 Setup' tab and input the ID of the HuggingFace \U0001F917 T2I model you want to evaluate.\n"
36
+ " A list of the most downloaded text-to-image models can be found [here](https://huggingface.co/models?pipeline_tag=text-to-image&sort=downloads)")
37
  expander.image(Image.open('./assets/HF_MODEL_ID_EXAMPLE.png'))
38
  expander.write("3. Test your chosen model by generating an image using an input prompt e.g.: 'A corgi with some cool sunglasses'\n")
39
  expander.image(Image.open('./assets/lykon_corgi.png'))
 
225
  with tab1:
226
  with st.form("model_definition_form", clear_on_submit=True):
227
  modelID = st.text_input('Input the HuggingFace \U0001F917 T2I model_id for the model you '
228
+ 'want to analyse e.g.: "runwayml/stable-diffusion-v1-5"\n
229
+ '[Here's a shortcut to T2I models sorted by the most downloads](https://huggingface.co/models?pipeline_tag=text-to-image&sort=downloads)')
230
  submitted1 = st.form_submit_button("Submit")
231
  if modelID:
232
  with st.spinner('Checking if ' + modelID + ' is valid and downloading it (if required)'):