prithivMLmods commited on
Commit
310aabf
·
verified ·
1 Parent(s): 15d411b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -17
app.py CHANGED
@@ -9,19 +9,16 @@ import spaces
9
  import torch
10
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
11
 
12
- DESCRIPTIONx = """## STABLE HAMSTER 🐹
13
- """
 
 
14
 
15
- DESCRIPTIONy = """
16
- <p align="left">
17
- <a title="Github" href="https://github.com/PRITHIVSAKTHIUR/Stable-Hamster" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
18
- <img src="https://img.shields.io/github/stars/PRITHIVSAKTHIUR/Stable-Hamster?label=GitHub%20%E2%98%85&logo=github&color=C8C" alt="badge-github-stars">
19
- </a>
20
- </p>
21
  """
22
 
 
23
  css = '''
24
- .gradio-container{max-width: 560px !important}
25
  h1{text-align:center}
26
  footer {
27
  visibility: hidden
@@ -137,7 +134,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
137
  placeholder="Enter your prompt",
138
  container=False,
139
  )
140
- run_button = gr.Button("Run", scale=0)
141
  result = gr.Gallery(label="Result", columns=1, show_label=False)
142
 
143
  with gr.Row():
@@ -147,7 +144,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
147
  value="RealVisXL_V4.0_Lightning"
148
  )
149
 
150
- with gr.Accordion("Advanced options", open=False, visible=False):
151
  num_images = gr.Slider(
152
  label="Number of Images",
153
  minimum=1,
@@ -241,11 +238,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
241
  api_name="run",
242
  )
243
 
244
- gr.Markdown(DESCRIPTIONy)
245
- gr.Markdown("**Disclaimer:**")
246
- gr.Markdown("This is the high-quality image generation demo space, which generates images in fractions of a second by using highly detailed prompts. This space can also make mistakes, so use it wisely.")
247
- gr.Markdown("**Note:**")
248
- gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
249
 
250
  if __name__ == "__main__":
251
- demo.queue(max_size=40).launch()
 
9
  import torch
10
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
11
 
12
+ DESCRIPTIONx = """
13
+
14
+ ## TEXT 2 IMAGE PLAYGROUND 🥠
15
+
16
 
 
 
 
 
 
 
17
  """
18
 
19
+
20
  css = '''
21
+ .gradio-container{max-width: 1000px !important}
22
  h1{text-align:center}
23
  footer {
24
  visibility: hidden
 
134
  placeholder="Enter your prompt",
135
  container=False,
136
  )
137
+ run_button = gr.Button("Run🚀", scale=0)
138
  result = gr.Gallery(label="Result", columns=1, show_label=False)
139
 
140
  with gr.Row():
 
144
  value="RealVisXL_V4.0_Lightning"
145
  )
146
 
147
+ with gr.Accordion("Advanced options", open=False,):
148
  num_images = gr.Slider(
149
  label="Number of Images",
150
  minimum=1,
 
238
  api_name="run",
239
  )
240
 
 
 
 
 
 
241
 
242
  if __name__ == "__main__":
243
+ demo.queue(max_size=40).launch(show_api=False)