Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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", "
|
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 |
],
|