salomonsky commited on
Commit
8d15a5c
·
verified ·
1 Parent(s): ce3cbc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,9 +60,9 @@ def enhance_prompt(text, client=client):
60
  st.warning(f"Prompt enhancement error: {e}")
61
  return text[:200]
62
 
63
- save_prompt(f"generated_image_{used_seed}.jpg", enhanced_prompt)
64
  with open(DATA_PATH / "prompts.txt", "a") as f:
65
- f.write(f"{image_name}: {prompt}\n")
66
 
67
  def generate_variations(prompt, num_variants=8, use_enhanced=True):
68
  instructions = [
 
60
  st.warning(f"Prompt enhancement error: {e}")
61
  return text[:200]
62
 
63
+ def save_prompt(image_name, enhanced_prompt):
64
  with open(DATA_PATH / "prompts.txt", "a") as f:
65
+ f.write(f"{image_name}: {enhanced_prompt}\n")
66
 
67
  def generate_variations(prompt, num_variants=8, use_enhanced=True):
68
  instructions = [