prithivMLmods commited on
Commit
66fdbc3
1 Parent(s): 2b12660

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -13
app.py CHANGED
@@ -10,13 +10,13 @@ import torch
10
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
11
 
12
 
13
- #css = '''
14
- #.gradio-container{max-width: 570px !important}
15
- #h1{text-align:center}
16
- #footer {
17
- # visibility: hidden
18
- #}
19
- #'''
20
 
21
  examples = [
22
  "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
@@ -135,12 +135,6 @@ def generate(
135
  # ]
136
  # return predefined_images
137
 
138
- # Function to read CSS from file
139
- def read_css_from_file(filename):
140
- with open(filename, "r") as file:
141
- return file.read()
142
-
143
- css = read_css_from_file("style.css")
144
 
145
  with gr.Blocks(css=css) as demo:
146
  gr.Markdown(
 
10
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
11
 
12
 
13
+ css = '''
14
+ .gradio-container{max-width: 570px !important}
15
+ h1{text-align:center}
16
+ footer {
17
+ visibility: hidden
18
+ }
19
+ '''
20
 
21
  examples = [
22
  "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
 
135
  # ]
136
  # return predefined_images
137
 
 
 
 
 
 
 
138
 
139
  with gr.Blocks(css=css) as demo:
140
  gr.Markdown(