Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,7 @@ def on_load_model(user_model_id, other_model_id, token):
|
|
62 |
model_id = user["name"] + "/" + model_id.split("/")[-1]
|
63 |
title = " ".join([w.capitalize() for w in model_id.split("/")[-1].replace("-", " ").replace("_", " ").split(" ")])
|
64 |
|
65 |
-
description = f"""Demo for <a href="https://huggingface.co/{original_model_id}">{title}</a> Stable Diffusion model
|
66 |
-
Add the following tokens to your prompts for the model to work properly: <b>$prefix</b>."""
|
67 |
|
68 |
return gr.update(visible=True), gr.update(value=model_id), gr.update(value=title), gr.update(value=description), None
|
69 |
|
|
|
62 |
model_id = user["name"] + "/" + model_id.split("/")[-1]
|
63 |
title = " ".join([w.capitalize() for w in model_id.split("/")[-1].replace("-", " ").replace("_", " ").split(" ")])
|
64 |
|
65 |
+
description = f"""Demo for <a href="https://huggingface.co/{original_model_id}">{title}</a> Stable Diffusion model."""
|
|
|
66 |
|
67 |
return gr.update(visible=True), gr.update(value=model_id), gr.update(value=title), gr.update(value=description), None
|
68 |
|