JUNGU commited on
Commit
879c94e
·
1 Parent(s): 5a0b4d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import matplotlib.pyplot as plt
6
  from translate import Translator
7
 
8
  keras.mixed_precision.set_global_policy("mixed_float16")
9
- model = keras_cv.models.StableDiffusion(img_width=512, img_height=512, jit_compile=True)
10
 
11
  def plot_images(images):
12
  plt.figure(figsize=(10, 10))
@@ -16,7 +16,6 @@ def plot_images(images):
16
  plt.axis("off")
17
  plt.tight_layout()
18
 
19
- images = model.text_to_image("photograph of an astronaut riding a horse", batch_size=3)
20
  translator = Translator(from_lang="ko", to_lang="en")
21
 
22
  def generate_images(text, n=3):
 
6
  from translate import Translator
7
 
8
  keras.mixed_precision.set_global_policy("mixed_float16")
9
+ model = keras_cv.models.StableDiffusion(img_width=256, img_height=256, jit_compile=True)
10
 
11
  def plot_images(images):
12
  plt.figure(figsize=(10, 10))
 
16
  plt.axis("off")
17
  plt.tight_layout()
18
 
 
19
  translator = Translator(from_lang="ko", to_lang="en")
20
 
21
  def generate_images(text, n=3):