prithivMLmods commited on
Commit
2b12660
·
verified ·
1 Parent(s): 49b21d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -8
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,7 +135,14 @@ def generate(
135
  # ]
136
  # return predefined_images
137
 
138
- with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
 
 
 
 
 
 
 
139
  gr.Markdown(
140
  f"""
141
  # Text🥠Image
 
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
+ # 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(
147
  f"""
148
  # Text🥠Image