multimodalart HF staff commited on
Commit
59b8a09
·
verified ·
1 Parent(s): e9e83e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,7 +48,7 @@ mask = Image.open("mask_square.png")
48
  @spaces.GPU
49
  def generate(image, prompt_user, progress=gr.Progress(track_tqdm=True)):
50
  prompt_structure = "The two-panel image showcases the logo of a brand, [LEFT] the left panel is showing the logo [RIGHT] the right panel has this logo applied to "
51
- prompt = prompt_structure + prompt_user
52
 
53
  cropped_image = square_center_crop(image)
54
  logo_dupli = duplicate_horizontally(cropped_image)
@@ -94,7 +94,7 @@ with gr.Blocks() as demo:
94
 
95
  gr.Examples(
96
  examples=[
97
- ["huggingface.png", "A hat"],
98
  ["awesome.png", "A tattoo on a leg"],
99
  ["dvd_logo.png", "a flower pot"]
100
  ],
 
48
  @spaces.GPU
49
  def generate(image, prompt_user, progress=gr.Progress(track_tqdm=True)):
50
  prompt_structure = "The two-panel image showcases the logo of a brand, [LEFT] the left panel is showing the logo [RIGHT] the right panel has this logo applied to "
51
+ prompt = prompt_structure + prompt_user + "with the logo"
52
 
53
  cropped_image = square_center_crop(image)
54
  logo_dupli = duplicate_horizontally(cropped_image)
 
94
 
95
  gr.Examples(
96
  examples=[
97
+ ["huggingface.png", "An embroidered hat"],
98
  ["awesome.png", "A tattoo on a leg"],
99
  ["dvd_logo.png", "a flower pot"]
100
  ],