DigiP-AI commited on
Commit
f60af0b
·
verified ·
1 Parent(s): a467f2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -20,6 +20,16 @@ from fastapi import FastAPI
20
 
21
  app = FastAPI()
22
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  def query(prompt, negative_prompt, task, steps, sampler, cfg_scale, seed, width, height):
25
  result = {"prompt": prompt,"negative_prompt": negative_prompt,"task": task,"steps": steps,"sampler": sampler,"cfg_scale": cfg_scale,"seed": seed, "width": width, "height": height}
@@ -185,15 +195,7 @@ examples = [
185
  "a beautiful woman with black hair and brown eyes",
186
  ]
187
 
188
- css = """
189
- #app-container {
190
- max-width: 930px;
191
- margin-left: auto;
192
- margin-right: auto;
193
- }
194
- .gradio-container {background-color: MediumAquaMarine}
195
- footer{display:none !important}
196
- """
197
 
198
  with gr.Blocks(css=css, theme=theme) as app:
199
 
 
20
 
21
  app = FastAPI()
22
 
23
+ # CSS to style the app
24
+ css = """
25
+ #app-container {
26
+ max-width: 896px;
27
+ margin-left: auto;
28
+ margin-right: auto;
29
+ }
30
+ .gradio-container {background-color: MediumAquaMarine}
31
+ footer{display:none !important}
32
+ """
33
 
34
  def query(prompt, negative_prompt, task, steps, sampler, cfg_scale, seed, width, height):
35
  result = {"prompt": prompt,"negative_prompt": negative_prompt,"task": task,"steps": steps,"sampler": sampler,"cfg_scale": cfg_scale,"seed": seed, "width": width, "height": height}
 
195
  "a beautiful woman with black hair and brown eyes",
196
  ]
197
 
198
+
 
 
 
 
 
 
 
 
199
 
200
  with gr.Blocks(css=css, theme=theme) as app:
201