VikasQblocks commited on
Commit
ac25a56
·
1 Parent(s): 8bdfe06

Update app.py

Browse files

Add slider steps and update to v2.0 to SDXL

Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -64,14 +64,14 @@ def generate_output(input_text: str, neg_prompt: str, samples: int, steps: int,
64
  input_components = [
65
  gr.inputs.Textbox(label="Input Prompt"),
66
  gr.inputs.Textbox(label="Negative Prompt"),
67
- gr.inputs.Slider(label="No. of Images to Generate", minimum=1, maximum=3, default=1),
68
- gr.inputs.Slider(label="Sampling Steps per Image", minimum=30, maximum=40, default=30),
69
  gr.inputs.Dropdown(label="Aspect Ratio", choices=["square", "landscape", "portrait"], default="square"),
70
  gr.inputs.Slider(label="Prompt Guidance Scale", minimum=0.1, maximum=20.0, default=7.5),
71
  gr.inputs.Textbox(label="Random Seed", default=random.randint(0, 1000000)),
72
  ]
73
 
74
- output_component_sdxl_base = gr.Gallery(label="Stable Diffusion V2.0 Output", type="pil", container = True)
75
  output_component_txt2img = gr.Gallery(label="Stable Diffusion V1.5 Output", type="pil", container = True)
76
 
77
  interface = gr.Interface(
@@ -81,7 +81,7 @@ interface = gr.Interface(
81
  live=False,
82
  capture_session=True,
83
  title="Stable Diffusion Evaluation powered by MonsterAPI",
84
- description="""This HuggingFace Space has been designed to help you compare the outputs between Stable-Diffusion V1.5 vs V2.0. These models are hosted on [MonsterAPI](https://monsterapi.ai/?utm_source=llm-evaluation&utm_medium=referral) - An AI infrastructure platform built for easily accessing AI models via scalable APIs and [finetuning LLMs](https://docs.monsterapi.ai/fine-tune-a-large-language-model-llm) at very low cost with our no-code implementation. MonsterAPI is powered by our low cost and highly scalable GPU computing platform - [Q Blocks](https://www.qblocks.cloud?utm_source=llm-evaluation&utm_medium=referral). These LLMs are accessible via scalable REST APIs. Checkout our [API documentation](https://documenter.getpostman.com/view/13759598/2s8ZDVZ3Yi) to integrate them in your AI powered applications.""",
85
  css="body {background-color: black}"
86
  )
87
 
 
64
  input_components = [
65
  gr.inputs.Textbox(label="Input Prompt"),
66
  gr.inputs.Textbox(label="Negative Prompt"),
67
+ gr.inputs.Slider(label="No. of Images to Generate", minimum=1, maximum=2, default=1, step = 1),
68
+ gr.inputs.Slider(label="Sampling Steps per Image", minimum=30, maximum=40, default=30, step = 1),
69
  gr.inputs.Dropdown(label="Aspect Ratio", choices=["square", "landscape", "portrait"], default="square"),
70
  gr.inputs.Slider(label="Prompt Guidance Scale", minimum=0.1, maximum=20.0, default=7.5),
71
  gr.inputs.Textbox(label="Random Seed", default=random.randint(0, 1000000)),
72
  ]
73
 
74
+ output_component_sdxl_base = gr.Gallery(label="Stable Diffusion XL Output", type="pil", container = True)
75
  output_component_txt2img = gr.Gallery(label="Stable Diffusion V1.5 Output", type="pil", container = True)
76
 
77
  interface = gr.Interface(
 
81
  live=False,
82
  capture_session=True,
83
  title="Stable Diffusion Evaluation powered by MonsterAPI",
84
+ description="""This HuggingFace Space has been designed to help you compare the outputs between Stable-Diffusion V1.5 vs SDXL. These models are hosted on [MonsterAPI](https://monsterapi.ai/?utm_source=llm-evaluation&utm_medium=referral) - An AI infrastructure platform built for easily accessing AI models via scalable APIs and [finetuning LLMs](https://docs.monsterapi.ai/fine-tune-a-large-language-model-llm) at very low cost with our no-code implementation. MonsterAPI is powered by our low cost and highly scalable GPU computing platform - [Q Blocks](https://www.qblocks.cloud?utm_source=llm-evaluation&utm_medium=referral). These LLMs are accessible via scalable REST APIs. Checkout our [API documentation](https://documenter.getpostman.com/view/13759598/2s8ZDVZ3Yi) to integrate them in your AI powered applications.""",
85
  css="body {background-color: black}"
86
  )
87