gparmar commited on
Commit
3f95316
1 Parent(s): 6fc70d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -18,6 +18,10 @@ from src.pix2pix_turbo import Pix2Pix_Turbo
18
  model = Pix2Pix_Turbo("sketch_to_image_stochastic")
19
 
20
  style_list = [
 
 
 
 
21
  {
22
  "name": "Cinematic",
23
  "prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
@@ -255,11 +259,11 @@ with gr.Blocks(css="style.css") as demo:
255
  result = gr.Image(label="Result", height=440, width=440, elem_id="output_image", show_label=False, show_download_button=True)
256
  download_output = gr.Button("Download output", elem_id="download_output")
257
  gr.Markdown("### Instructions")
258
- gr.Markdown("**1**. Enter a text prompt.")
259
- gr.Markdown("**2**. Sketch the image you want to draw")
260
- gr.Markdown("**3**. Select the style of the image with the Prompt Style Template")
261
- gr.Markdown("**4**. Adjust the Sketch guidance gamma to control the influence of the sketch on the final image")
262
- gr.Markdown("**5**. Try different seeds to get different results")
263
 
264
 
265
  eraser.change(fn=lambda x: gr.update(value=not x), inputs=[eraser], outputs=[line]).then(update_canvas, [line, eraser], [image])
 
18
  model = Pix2Pix_Turbo("sketch_to_image_stochastic")
19
 
20
  style_list = [
21
+ {
22
+ "name": "No Style",
23
+ "prompt": "{prompt}",
24
+ },
25
  {
26
  "name": "Cinematic",
27
  "prompt": "cinematic still {prompt} . emotional, harmonious, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy",
 
259
  result = gr.Image(label="Result", height=440, width=440, elem_id="output_image", show_label=False, show_download_button=True)
260
  download_output = gr.Button("Download output", elem_id="download_output")
261
  gr.Markdown("### Instructions")
262
+ gr.Markdown("**1**. Enter a text prompt (e.g. cat)")
263
+ gr.Markdown("**2**. Start sketching")
264
+ gr.Markdown("**3**. Change the image style using a style template")
265
+ gr.Markdown("**4**. Adjust the effect of sketch guidance using the slider")
266
+ gr.Markdown("**5**. Try different seeds to generate different results")
267
 
268
 
269
  eraser.change(fn=lambda x: gr.update(value=not x), inputs=[eraser], outputs=[line]).then(update_canvas, [line, eraser], [image])