Spaces:
Running
on
Zero
Running
on
Zero
[add] add target prompt
Browse files- app/src/brushedit_app.py +4 -2
app/src/brushedit_app.py
CHANGED
@@ -82,7 +82,9 @@ Currently, we support two modes: <b>fully automated command editing</b> and <b>i
|
|
82 |
<b> We recommend zooming out in your browser for a better viewing range and experience. </b>
|
83 |
|
84 |
<b> For more detailed feature descriptions, see the bottom. </b>
|
85 |
-
|
|
|
|
|
86 |
☕️ Have fun! 🎄 Wishing you a merry Christmas!
|
87 |
"""
|
88 |
|
@@ -772,7 +774,7 @@ def process(input_image,
|
|
772 |
# image[3].save(f"outputs/image_edit_{uuid}_3.png")
|
773 |
# mask_image.save(f"outputs/mask_{uuid}.png")
|
774 |
# masked_image.save(f"outputs/masked_image_{uuid}.png")
|
775 |
-
|
776 |
return image, [mask_image], [masked_image], prompt, '', False
|
777 |
|
778 |
|
|
|
82 |
<b> We recommend zooming out in your browser for a better viewing range and experience. </b>
|
83 |
|
84 |
<b> For more detailed feature descriptions, see the bottom. </b>
|
85 |
+
|
86 |
+
⚠️ We recommend using gpt4-o. If you are using Qwen-7b, when it does not meet the editing intention, you can copy the popped-up target prompt and modify it according to your own wishes, and then type it into the <b>Input Target Prompt</b> and re-run.
|
87 |
+
|
88 |
☕️ Have fun! 🎄 Wishing you a merry Christmas!
|
89 |
"""
|
90 |
|
|
|
774 |
# image[3].save(f"outputs/image_edit_{uuid}_3.png")
|
775 |
# mask_image.save(f"outputs/mask_{uuid}.png")
|
776 |
# masked_image.save(f"outputs/masked_image_{uuid}.png")
|
777 |
+
gr.Info(f"Target Prompt: {prompt_after_apply_instruction}", duration=16)
|
778 |
return image, [mask_image], [masked_image], prompt, '', False
|
779 |
|
780 |
|