Spaces:
Running
Running
Commit
·
a615b7a
1
Parent(s):
7ddb9ce
Update app.py
Browse files
app.py
CHANGED
@@ -182,6 +182,7 @@ def check_civit_link(profile: Optional[gr.OAuthProfile], url):
|
|
182 |
info, _ = process_url(url, download_files=False)
|
183 |
hf_username = extract_huggingface_username(info['creator'])
|
184 |
print(hf_username)
|
|
|
185 |
if(not hf_username):
|
186 |
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" />'
|
187 |
return no_username_text, gr.update(), gr.update(visible=True)
|
|
|
182 |
info, _ = process_url(url, download_files=False)
|
183 |
hf_username = extract_huggingface_username(info['creator'])
|
184 |
print(hf_username)
|
185 |
+
print(profile.name)
|
186 |
if(not hf_username):
|
187 |
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" />'
|
188 |
return no_username_text, gr.update(), gr.update(visible=True)
|