Nad54 commited on
Commit
77d07ec
·
verified ·
1 Parent(s): a796ca0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -141,14 +141,15 @@ def generate_fn(image, prompt, scale, style, guidance, steps, seed, randomize, n
141
  title = "🎨 InstantCharacter + One Piece LoRA"
142
  description = (
143
  "Upload your photo, use the universal One Piece prompt, choose **One Piece style**. "
144
- "Output is fixed to **1024×780**. API is enabled for Make.com."
145
  )
146
 
 
147
  demo = gr.Interface(
148
  fn=generate_fn,
149
  inputs=[
150
  gr.Image(label="Source Image", type="pil"),
151
- gr.Textbox(label="Prompt", value=f"{UNIVERSAL_PROMPT}, {ONEPIECE_TRIGGER}"),
152
  gr.Slider(0, 1.5, value=1.0, step=0.01, label="Scale"),
153
  gr.Dropdown(choices=[None, "Makoto Shinkai style", "Ghibli style", "One Piece style"],
154
  value="One Piece style", label="Style"),
@@ -162,10 +163,10 @@ demo = gr.Interface(
162
  title=title,
163
  description=description,
164
  examples=[
165
- ["./assets/girl.jpg", f"{UNIVERSAL_PROMPT}, {ONEPIECE_TRIGGER}", 0.9, "One Piece style", 3.5, 28, 123, False, ""],
166
- ["./assets/boy.jpg", f"{UNIVERSAL_PROMPT}, {ONEPIECE_TRIGGER}", 0.9, "One Piece style", 3.5, 28, 123, False, ""]
167
- ],
168
- api_open=True, # <<< nécessaire pour Make.com
169
  )
170
 
171
- demo.launch()
 
 
141
  title = "🎨 InstantCharacter + One Piece LoRA"
142
  description = (
143
  "Upload your photo, use the universal One Piece prompt, choose **One Piece style**. "
144
+ "Output is fixed to **1024×768**. API is enabled for Make.com."
145
  )
146
 
147
+ # (ne PAS mettre api_open ici)
148
  demo = gr.Interface(
149
  fn=generate_fn,
150
  inputs=[
151
  gr.Image(label="Source Image", type="pil"),
152
+ gr.Textbox(label="Prompt", value=f"a character is riding a bike in snow, {ONEPIECE_TRIGGER}"),
153
  gr.Slider(0, 1.5, value=1.0, step=0.01, label="Scale"),
154
  gr.Dropdown(choices=[None, "Makoto Shinkai style", "Ghibli style", "One Piece style"],
155
  value="One Piece style", label="Style"),
 
163
  title=title,
164
  description=description,
165
  examples=[
166
+ ["./assets/girl.jpg", f"A girl playing guitar, {ONEPIECE_TRIGGER}", 0.9, "One Piece style", 3.5, 28, 123, False, ""],
167
+ ["./assets/boy.jpg", f"A boy riding a bike, {ONEPIECE_TRIGGER}", 0.9, "One Piece style", 3.5, 28, 123, False, ""]
168
+ ]
 
169
  )
170
 
171
+ # ⇩⇩⇩ utiliser show_api=True ici
172
+ demo.launch(show_api=True)