witcherderivia commited on
Commit
d578a96
·
verified ·
1 Parent(s): ee9e5ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -265,7 +265,7 @@ def infer(
265
  "true_cfg_scale": true_guidance_scale,
266
  "negative_prompt": " ",
267
  "num_inference_steps": num_inference_steps,
268
- "guidance_scale": true_g,
269
  "num_images_per_prompt": 1,
270
  "width": w or sw,
271
  "height": h or sh,
@@ -297,6 +297,8 @@ _HEADER_ = '''
297
 
298
 
299
  <p style="font-size: 1rem; margin-bottom: 1.5rem;">Paper: <a href='https://openreview.net/forum?id=Cgb7JpOA5Q&referrer=%5Bthe%20profile%20of%20Shiwen%20Zhang%5D(%2Fprofile%3Fid%3D~Shiwen_Zhang1)' target='_blank'>QwenStyle: Content-Preserving Style Transfer with Qwen-Image-Edit</a> | Codes: <a href='https://github.com/witcherofresearch/Qwen-Image-Style-Transfer' target='_blank'>GitHub</a></p>
 
 
300
  <p style="font-size: 1rem; margin-bottom: 1.5rem;">If you encounter an Error with this demo, the most possible reason is ZeroGPU out-of-memory and the solution is to decrease the Min Edge of the generated image from 1024 to a lower value. </p>
301
  '''
302
 
 
265
  "true_cfg_scale": true_guidance_scale,
266
  "negative_prompt": " ",
267
  "num_inference_steps": num_inference_steps,
268
+ "guidance_scale": true_guidance_scale,
269
  "num_images_per_prompt": 1,
270
  "width": w or sw,
271
  "height": h or sh,
 
297
 
298
 
299
  <p style="font-size: 1rem; margin-bottom: 1.5rem;">Paper: <a href='https://openreview.net/forum?id=Cgb7JpOA5Q&referrer=%5Bthe%20profile%20of%20Shiwen%20Zhang%5D(%2Fprofile%3Fid%3D~Shiwen_Zhang1)' target='_blank'>QwenStyle: Content-Preserving Style Transfer with Qwen-Image-Edit</a> | Codes: <a href='https://github.com/witcherofresearch/Qwen-Image-Style-Transfer' target='_blank'>GitHub</a></p>
300
+ <p style="font-size: 1rem; margin-bottom: 1.5rem;">Update: prompt enhancer provided, and the model supports content ref/style ref only input, which means you could use the model as an image editing model and style transfer model at the same time. So you don't have to provide a style reference now, the model also accepts prompt for style transfer, which makes the model more flexible. </p>
301
+
302
  <p style="font-size: 1rem; margin-bottom: 1.5rem;">If you encounter an Error with this demo, the most possible reason is ZeroGPU out-of-memory and the solution is to decrease the Min Edge of the generated image from 1024 to a lower value. </p>
303
  '''
304