Spaces:
Configuration error
Configuration error
root
commited on
Commit
•
d1c0e9f
1
Parent(s):
908a76c
update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def swap_text(option, base):
|
|
47 |
if(option == "object"):
|
48 |
instance_prompt_example = "cttoy"
|
49 |
freeze_for = 30
|
50 |
-
return [f"You are going to train `object`(s), upload 5-10 images of each object you are planning on training on from different angles/perspectives. You can use services like <a style='text-decoration: underline' target='_blank' href='https://www.birme.net/?target_width={resize_width}&target_height={resize_width}'>birme</a> for smart cropping. {mandatory_liability}:", '''<img src="
|
51 |
elif(option == "person"):
|
52 |
instance_prompt_example = "julcto"
|
53 |
freeze_for = 70
|
@@ -57,7 +57,7 @@ def swap_text(option, base):
|
|
57 |
prior_preservation_box_update = gr.update(visible=show_prior_preservation)
|
58 |
else:
|
59 |
prior_preservation_box_update = gr.update(visible=show_prior_preservation, value=False)
|
60 |
-
return [f"You are going to train a `person`(s), upload 10-20 images of each person you are planning on training on from different angles/perspectives. You can use services like <a style='text-decoration: underline' target='_blank' href='https://www.birme.net/?target_width={resize_width}&target_height={resize_width}'>birme</a> for smart cropping. {mandatory_liability}:", '''<img src="
|
61 |
elif(option == "style"):
|
62 |
instance_prompt_example = "trsldamrl"
|
63 |
freeze_for = 10
|
|
|
47 |
if(option == "object"):
|
48 |
instance_prompt_example = "cttoy"
|
49 |
freeze_for = 30
|
50 |
+
return [f"You are going to train `object`(s), upload 5-10 images of each object you are planning on training on from different angles/perspectives. You can use services like <a style='text-decoration: underline' target='_blank' href='https://www.birme.net/?target_width={resize_width}&target_height={resize_width}'>birme</a> for smart cropping. {mandatory_liability}:", '''<img src="https://raw.githubusercontent.com/superhero-7/img_bank/main/Naruto.png" />''', f"You should name your concept with a unique made up word that has low chance of the model already knowing it (e.g.: `{instance_prompt_example}` here). Images will be automatically cropped to {resize_width}x{resize_width}.", freeze_for, gr.update(visible=False)]
|
51 |
elif(option == "person"):
|
52 |
instance_prompt_example = "julcto"
|
53 |
freeze_for = 70
|
|
|
57 |
prior_preservation_box_update = gr.update(visible=show_prior_preservation)
|
58 |
else:
|
59 |
prior_preservation_box_update = gr.update(visible=show_prior_preservation, value=False)
|
60 |
+
return [f"You are going to train a `person`(s), upload 10-20 images of each person you are planning on training on from different angles/perspectives. You can use services like <a style='text-decoration: underline' target='_blank' href='https://www.birme.net/?target_width={resize_width}&target_height={resize_width}'>birme</a> for smart cropping. {mandatory_liability}:", '''<img src="https://raw.githubusercontent.com/superhero-7/img_bank/main/cxk.png" />''', f"You should name your concept with a unique made up word that has low chance of the model already knowing it (e.g.: `{instance_prompt_example}` here). Images will be automatically cropped to {resize_width}x{resize_width}.", freeze_for, prior_preservation_box_update]
|
61 |
elif(option == "style"):
|
62 |
instance_prompt_example = "trsldamrl"
|
63 |
freeze_for = 10
|