Manjushri commited on
Commit
de90ccb
1 Parent(s): 1129c84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -3,8 +3,8 @@ from PIL import Image
3
  import gradio as gr
4
 
5
  generator = Text2Image(
6
- img_height=512,
7
- img_width=512,
8
  jit_compile=False)
9
 
10
  def txt2img(prompt, guide, steps, Temp):
@@ -18,7 +18,7 @@ def txt2img(prompt, guide, steps, Temp):
18
 
19
  iface = gr.Interface(fn=txt2img, inputs=[
20
  gr.Textbox(label = 'Input Text Prompt'),
21
- gr.Slider(2, 20, value = 9, label = 'Guidence Scale: How close to follow Prompt'),
22
- gr.Slider(10, 100, value = 50, step = 1, label = 'Number of Iterations, more take longer but improve image quality'),
23
- gr.Slider(.01, 100, value=1, label='Temperature: Changes probability of Diffusion to Image Array, more info in community comments')], outputs = 'image',title='Stable Diffusion with Keras and TensorFlow CPU or GPU', description='Now Using Keras and TensorFlow with Stable Diffusion. This allows very complex image generation with less code footprint, and less text. Simply type in what you wish to see, adjust the sliders (optional) and click submit. For more information on Keras see https://keras.io/about/ for more informationon about Stable Diffusion or Suggestions for prompts, keywords, artists or styles see https://github.com/Maks-s/sd-akashic', article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>")
24
  iface.launch()
 
3
  import gradio as gr
4
 
5
  generator = Text2Image(
6
+ img_height=256,
7
+ img_width=256,
8
  jit_compile=False)
9
 
10
  def txt2img(prompt, guide, steps, Temp):
 
18
 
19
  iface = gr.Interface(fn=txt2img, inputs=[
20
  gr.Textbox(label = 'Input Text Prompt'),
21
+ gr.Slider(2, 20, value = 9, label = 'Guidance Scale: How close to follow Prompt'),
22
+ gr.Slider(10, 50, value = 20, step = 1, label = 'Number of Iterations, more take longer but improve image quality'),
23
+ gr.Slider(.01, 100, value=1, label='Temperature: Changes probability of Diffusion to Image Array, more info in community comments')], outputs = 'image',title='Stable Diffusion with Keras and TensorFlow CPU or GPU', description='Now Using Keras and TensorFlow with Stable Diffusion. This allows very complex image generation with less code footprint, and less text. Simply type in what you wish to see, adjust the sliders (optional) and click submit. For more information on Keras see https://keras.io/about/ For more informationon about Stable Diffusion or Suggestions for prompts, keywords, artists or styles see https://github.com/Maks-s/sd-akashic', article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>")
24
  iface.launch()