JVice commited on
Commit
3cfb26b
β€’
1 Parent(s): 86e75f4

Update app.py

Browse files

add exception for gated models

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -249,7 +249,8 @@ with tab1:
249
  else:
250
  st.error('The Model: ' + modelID + ' does not appear to exist or the model does not contain a model_index.json file.'
251
  ' Please check that that HuggingFace repo ID is valid.'
252
- ' For more help, please see the "How to Use" Tab above.', icon="🚨")
 
253
  if modelID:
254
  with st.form("example_image_gen_form", clear_on_submit=True):
255
  testPrompt = st.text_input('Input a random test prompt to test out your '
 
249
  else:
250
  st.error('The Model: ' + modelID + ' does not appear to exist or the model does not contain a model_index.json file.'
251
  ' Please check that that HuggingFace repo ID is valid.'
252
+ 'This error will also occur when trying to access Gated models.'
253
+ ' For more help/info, please see "How to Use" Tab above.', icon="🚨")
254
  if modelID:
255
  with st.form("example_image_gen_form", clear_on_submit=True):
256
  testPrompt = st.text_input('Input a random test prompt to test out your '