multimodalart HF staff commited on
Commit
e6d2c96
1 Parent(s): a1c95a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -208,7 +208,7 @@ def check_civit_link(profile: Optional[gr.OAuthProfile], url):
208
  no_username_text = 'Oops, your CivitAI profile seems to not have information about your Hugging Face account. Please visit <a href="https://civitai.com/user/account">https://civitai.com/user/account</a> and include it there<br><img width="60%" src="https://i.imgur.com/hCbo9uL.png" />'
209
  return no_username_text, gr.update(), gr.update(visible=True)
210
  if(profile.preferred_username != hf_username):
211
- unmatched_username_text = 'Oops, the Hugging Face account in your CivitAI profile seems to be different than the one your are using here. Please visit <a href="https://civitai.com/user/account">https://civitai.com/user/account</a> and update it there<br><img src="https://i.imgur.com/hCbo9uL.png" />'
212
  return unmatched_username_text, gr.update(), gr.update(visible=True)
213
  else:
214
  return '', gr.update(interactive=True), gr.update(visible=False)
@@ -246,6 +246,9 @@ css = '''
246
  '''
247
 
248
  with gr.Blocks(css=css) as demo:
 
 
 
249
  gr.LoginButton(elem_id="login")
250
  with gr.Column(elem_id="disabled_upload") as disabled_area:
251
  with gr.Row():
 
208
  no_username_text = 'Oops, your CivitAI profile seems to not have information about your Hugging Face account. Please visit <a href="https://civitai.com/user/account">https://civitai.com/user/account</a> and include it there<br><img width="60%" src="https://i.imgur.com/hCbo9uL.png" />'
209
  return no_username_text, gr.update(), gr.update(visible=True)
210
  if(profile.preferred_username != hf_username):
211
+ unmatched_username_text = 'Oops, the Hugging Face account in your CivitAI profile seems to be different than the one your are using here. This Space only works for model authors to submit their own models to Hugging Face. If you do own the model, please visit <a href="https://civitai.com/user/account">https://civitai.com/user/account</a> and update it there<br><img src="https://i.imgur.com/hCbo9uL.png" />'
212
  return unmatched_username_text, gr.update(), gr.update(visible=True)
213
  else:
214
  return '', gr.update(interactive=True), gr.update(visible=False)
 
246
  '''
247
 
248
  with gr.Blocks(css=css) as demo:
249
+ gr.Markdown('''# Bring your CivitAI SDXL LoRA to Hugging Face
250
+ For diffusers compatibility, free GPU-based Inference Widget and possibility to submit to the [LoRA the Explorer](https://huggingface.co/spaces/multimodalart/LoraTheExplorer) space
251
+ ''')
252
  gr.LoginButton(elem_id="login")
253
  with gr.Column(elem_id="disabled_upload") as disabled_area:
254
  with gr.Row():