Spaces:
Running
Running
Commit
·
d2a957f
1
Parent(s):
b71b4d3
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,7 +155,7 @@ def check_civit_link(profile: Optional[gr.OAuthProfile], url):
|
|
| 155 |
hf_username = extract_huggingface_username(info['creator'])
|
| 156 |
attributes_methods = dir(profile)
|
| 157 |
if(not hf_username):
|
| 158 |
-
no_username_text = f'
|
| 159 |
return no_username_text, gr.update(interactive=False), gr.update(visible=True), hf_username
|
| 160 |
if(profile.preferred_username != hf_username):
|
| 161 |
unmatched_username_text = '<h4>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" /></h4>'
|
|
@@ -270,7 +270,7 @@ Get diffusers compatibility, a free GPU-based Inference Widget and possibility t
|
|
| 270 |
info="URL of the CivitAI model, for now only SDXL LoRAs are supported",
|
| 271 |
)
|
| 272 |
instructions = gr.HTML("")
|
| 273 |
-
try_again_button = gr.Button("I have added my HF profile to my account", visible=False)
|
| 274 |
submit_button_civit = gr.Button("Upload model to Hugging Face", interactive=False)
|
| 275 |
output = gr.Markdown(label="Output progress", visible=False)
|
| 276 |
|
|
|
|
| 155 |
hf_username = extract_huggingface_username(info['creator'])
|
| 156 |
attributes_methods = dir(profile)
|
| 157 |
if(not hf_username):
|
| 158 |
+
no_username_text = f'If you are {info["creator"]} on CivitAI, hi! Your CivitAI profile seems to not have information about your Hugging Face account. Please visit <a href="https://civitai.com/user/account" target="_blank">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)'
|
| 159 |
return no_username_text, gr.update(interactive=False), gr.update(visible=True), hf_username
|
| 160 |
if(profile.preferred_username != hf_username):
|
| 161 |
unmatched_username_text = '<h4>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" /></h4>'
|
|
|
|
| 270 |
info="URL of the CivitAI model, for now only SDXL LoRAs are supported",
|
| 271 |
)
|
| 272 |
instructions = gr.HTML("")
|
| 273 |
+
try_again_button = gr.Button("I have added my HF profile to my account (it may take 1 minute to refresh)", visible=False)
|
| 274 |
submit_button_civit = gr.Button("Upload model to Hugging Face", interactive=False)
|
| 275 |
output = gr.Markdown(label="Output progress", visible=False)
|
| 276 |
|