Spaces:
Running
Running
Commit
·
cbbbacb
1
Parent(s):
c2dfb4a
Update app.py
Browse files
app.py
CHANGED
@@ -205,10 +205,10 @@ def check_civit_link(profile: Optional[gr.OAuthProfile], url):
|
|
205 |
hf_username = extract_huggingface_username(info['creator'])
|
206 |
attributes_methods = dir(profile)
|
207 |
if(not hf_username):
|
208 |
-
no_username_text = '
|
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)
|
|
|
205 |
hf_username = extract_huggingface_username(info['creator'])
|
206 |
attributes_methods = dir(profile)
|
207 |
if(not hf_username):
|
208 |
+
no_username_text = f'<h4>Hello {info["creator"]} 🤗, 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" /><br>(if you are not {info["creator"]}, you cannot submit their model at this time)</h4>'
|
209 |
return no_username_text, gr.update(), gr.update(visible=True)
|
210 |
if(profile.preferred_username != hf_username):
|
211 |
+
unmatched_username_text = '<h4>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" /></h4>'
|
212 |
return unmatched_username_text, gr.update(), gr.update(visible=True)
|
213 |
else:
|
214 |
return '', gr.update(interactive=True), gr.update(visible=False)
|