akhaliq HF Staff commited on
Commit
5692c1c
·
verified ·
1 Parent(s): db18219

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -56,7 +56,7 @@ def convert_to_anime(
56
  progress=gr.Progress(track_tqdm=True)
57
  ):
58
  if not prompt or prompt.strip() == "":
59
- prompt = "Convert this photo to anime style"
60
 
61
  if randomize_seed:
62
  seed = random.randint(0, MAX_SEED)
@@ -203,7 +203,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
203
  label="Prompt",
204
  placeholder="Enter your editing instruction (e.g., 'Convert this photo to anime style')",
205
  lines=2,
206
- value="Convert this photo to anime style"
207
  )
208
 
209
  with gr.Accordion("⚙️ Advanced Settings", open=False):
@@ -214,11 +214,11 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
214
  height = gr.Slider(label="Height", minimum=256, maximum=2048, step=8, value=1024, visible=False)
215
  width = gr.Slider(label="Width", minimum=256, maximum=2048, step=8, value=1024, visible=False)
216
 
217
- convert_btn = gr.Button("Convert to Anime", variant="primary", elem_id="convert-btn", size="lg")
218
 
219
  with gr.Column(scale=1):
220
  result = gr.Image(
221
- label="Anime Result",
222
  interactive=False,
223
  elem_classes="image-container"
224
  )
 
56
  progress=gr.Progress(track_tqdm=True)
57
  ):
58
  if not prompt or prompt.strip() == "":
59
+ prompt = "edit"
60
 
61
  if randomize_seed:
62
  seed = random.randint(0, MAX_SEED)
 
203
  label="Prompt",
204
  placeholder="Enter your editing instruction (e.g., 'Convert this photo to anime style')",
205
  lines=2,
206
+ value="Edit"
207
  )
208
 
209
  with gr.Accordion("⚙️ Advanced Settings", open=False):
 
214
  height = gr.Slider(label="Height", minimum=256, maximum=2048, step=8, value=1024, visible=False)
215
  width = gr.Slider(label="Width", minimum=256, maximum=2048, step=8, value=1024, visible=False)
216
 
217
+ convert_btn = gr.Button("Edit", variant="primary", elem_id="convert-btn", size="lg")
218
 
219
  with gr.Column(scale=1):
220
  result = gr.Image(
221
+ label="Result",
222
  interactive=False,
223
  elem_classes="image-container"
224
  )