sayakpaul HF staff commited on
Commit
f7ac112
1 Parent(s): 6ba54df

fix: teext.

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -9,7 +9,11 @@ cartoonization_id = "instruction-tuning-sd/cartoonizer"
9
  image_proc_id = "instruction-tuning-sd/low-level-img-proc"
10
 
11
  title = "Instruction-tuned Stable Diffusion"
12
- description = "This Space demonstrates the instruction-tuning on Stable Diffusion. To know more, please check out the [corresponding blog post](https://hf.co/blog/instruction-tuning-sd). Some experimentation tips are available from [the original InstructPix2Pix Space](https://huggingface.co/spaces/timbrooks/instruct-pix2pix)."
 
 
 
 
13
 
14
 
15
  def load_pipeline(id: str):
@@ -78,10 +82,10 @@ with gr.Blocks(theme="gradio/soft") as demo:
78
  prompt = gr.Textbox(label="Prompt")
79
  neg_prompt = gr.Textbox(label="Negative Prompt")
80
  input_image = gr.Image(label="Input Image", type="pil")
81
- steps = gr.Slider(minimum=5, maximum=100, step=1)
82
  img_cfg = gr.Number(value=1.5, label=f"Image CFG", interactive=True)
83
  text_cfg = gr.Number(value=7.5, label=f"Text CFG", interactive=True)
84
- seed = gr.Slider(minimum=0, maximum=100000, step=1)
85
 
86
  car_output_gallery = gr.Gallery(
87
  label="Generated images", show_label=False, elem_id="gallery"
 
9
  image_proc_id = "instruction-tuning-sd/low-level-img-proc"
10
 
11
  title = "Instruction-tuned Stable Diffusion"
12
+ description = "This Space demonstrates the instruction-tuning on Stable Diffusion. To know more, "
13
+ "please check out the [corresponding blog post](https://hf.co/blog/instruction-tuning-sd). "
14
+ "Some experimentation tips on the hyperparameters are available from "
15
+ "[the original InstructPix2Pix Space](https://huggingface.co/spaces/timbrooks/instruct-pix2pix). "
16
+ "You can quickly try out the samples provided at the bottom of this demo."
17
 
18
 
19
  def load_pipeline(id: str):
 
82
  prompt = gr.Textbox(label="Prompt")
83
  neg_prompt = gr.Textbox(label="Negative Prompt")
84
  input_image = gr.Image(label="Input Image", type="pil")
85
+ steps = gr.Slider(minimum=5, maximum=100, step=1, label="Steps")
86
  img_cfg = gr.Number(value=1.5, label=f"Image CFG", interactive=True)
87
  text_cfg = gr.Number(value=7.5, label=f"Text CFG", interactive=True)
88
+ seed = gr.Slider(minimum=0, maximum=100000, step=1, label="Seed")
89
 
90
  car_output_gallery = gr.Gallery(
91
  label="Generated images", show_label=False, elem_id="gallery"