lulavc commited on
Commit
42a1704
·
verified ·
1 Parent(s): 8defa36

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -861,9 +861,11 @@ def generate_with_polish(prompt: str, style: str, do_polish: bool, ratio: str, s
861
  """
862
  logger.info(f"generate_with_polish: do_polish={do_polish}, style={style}, prompt_len={len(prompt) if prompt else 0}")
863
 
864
- # Show status while polishing (if enabled)
865
  if do_polish:
866
  yield None, "✨ Enhancing prompt with DeepSeek Reasoner...", seed
 
 
867
 
868
  full_prompt, polished_display = do_polish_prompt(prompt, style, do_polish, mode="generate")
869
 
@@ -898,9 +900,11 @@ def transform_with_polish(input_image: Optional[Image.Image], prompt: str, style
898
  yield None, "❌ Please upload an image first", 0
899
  return
900
 
901
- # Show status while polishing (if enabled)
902
  if do_polish:
903
  yield None, "✨ Enhancing prompt with DeepSeek Reasoner...", 0
 
 
904
 
905
  full_prompt, polished_display = do_polish_transform_prompt(prompt, style, do_polish)
906
 
 
861
  """
862
  logger.info(f"generate_with_polish: do_polish={do_polish}, style={style}, prompt_len={len(prompt) if prompt else 0}")
863
 
864
+ # Always yield initial status
865
  if do_polish:
866
  yield None, "✨ Enhancing prompt with DeepSeek Reasoner...", seed
867
+ else:
868
+ yield None, "🎨 Preparing generation...", seed
869
 
870
  full_prompt, polished_display = do_polish_prompt(prompt, style, do_polish, mode="generate")
871
 
 
900
  yield None, "❌ Please upload an image first", 0
901
  return
902
 
903
+ # Always yield initial status
904
  if do_polish:
905
  yield None, "✨ Enhancing prompt with DeepSeek Reasoner...", 0
906
+ else:
907
+ yield None, "🎨 Preparing transformation...", 0
908
 
909
  full_prompt, polished_display = do_polish_transform_prompt(prompt, style, do_polish)
910