ChenWu98 commited on
Commit
90b5145
1 Parent(s): 8278e6d

Update app.py and example image

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. images/black_car.png +3 -0
app.py CHANGED
@@ -7,7 +7,7 @@ import streamlit as st
7
 
8
  is_colab = utils.is_google_colab()
9
 
10
- if True:
11
  model_id_or_path = "CompVis/stable-diffusion-v1-4"
12
  scheduler = DDIMScheduler.from_config(model_id_or_path,
13
  use_auth_token=st.secrets["USER_TOKEN"],
@@ -113,6 +113,7 @@ with gr.Blocks(css=css) as demo:
113
  ex = gr.Examples(
114
  [
115
  ["An astronaut riding a horse", "An astronaut riding an elephant", 1, 2, 100, 512, 512, 0, "images/astronaut_horse.png", 0.8],
 
116
  ],
117
  [source_prompt, target_prompt, source_guidance_scale, guidance_scale, num_inference_steps,
118
  width, height, seed, img, strength],
 
7
 
8
  is_colab = utils.is_google_colab()
9
 
10
+ if False:
11
  model_id_or_path = "CompVis/stable-diffusion-v1-4"
12
  scheduler = DDIMScheduler.from_config(model_id_or_path,
13
  use_auth_token=st.secrets["USER_TOKEN"],
 
113
  ex = gr.Examples(
114
  [
115
  ["An astronaut riding a horse", "An astronaut riding an elephant", 1, 2, 100, 512, 512, 0, "images/astronaut_horse.png", 0.8],
116
+ ["A black colored car.", "A blue colored car.", 1, 2, 100, 512, 512, 0, "images/black_car.png", 0.85],
117
  ],
118
  [source_prompt, target_prompt, source_guidance_scale, guidance_scale, num_inference_steps,
119
  width, height, seed, img, strength],
images/black_car.png ADDED

Git LFS Details

  • SHA256: 8a0a8ec9716595e3b995bc6c1a784c7215ee16869e67f141a74cfcaaf55726ac
  • Pointer size: 132 Bytes
  • Size of remote file: 1.86 MB