Spaces:
Running
on
Zero
Running
on
Zero
GabrielSalem
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -87,8 +87,70 @@ def generate_image(images, gender, prompt, progress=gr.Progress(track_tqdm=True)
|
|
87 |
return image
|
88 |
|
89 |
css = '''
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
'''
|
93 |
|
94 |
with gr.Blocks(css=css) as demo:
|
|
|
87 |
return image
|
88 |
|
89 |
css = '''
|
90 |
+
body {
|
91 |
+
font-family: 'Roboto', sans-serif;
|
92 |
+
margin: 0;
|
93 |
+
padding: 0;
|
94 |
+
background: linear-gradient(135deg, #1e3c72, #2a5298);
|
95 |
+
color: #fff;
|
96 |
+
display: flex;
|
97 |
+
justify-content: center;
|
98 |
+
align-items: center;
|
99 |
+
min-height: 100vh;
|
100 |
+
overflow-x: hidden;
|
101 |
+
}
|
102 |
+
footer {
|
103 |
+
display: none;
|
104 |
+
}
|
105 |
+
h1 {
|
106 |
+
font-size: 2rem;
|
107 |
+
margin-bottom: 0.5em;
|
108 |
+
text-align: center;
|
109 |
+
}
|
110 |
+
.gradio-container {
|
111 |
+
display: flex;
|
112 |
+
flex-direction: column;
|
113 |
+
align-items: center;
|
114 |
+
width: 100%;
|
115 |
+
max-width: 500px;
|
116 |
+
margin: 0 auto;
|
117 |
+
padding: 20px;
|
118 |
+
box-sizing: border-box;
|
119 |
+
gap: 20px;
|
120 |
+
}
|
121 |
+
.gradio-container > * {
|
122 |
+
width: 100%;
|
123 |
+
}
|
124 |
+
.gradio-gallery {
|
125 |
+
display: flex;
|
126 |
+
flex-wrap: wrap;
|
127 |
+
gap: 10px;
|
128 |
+
justify-content: center;
|
129 |
+
}
|
130 |
+
.gradio-gallery img {
|
131 |
+
border-radius: 10px;
|
132 |
+
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
|
133 |
+
max-width: 100%;
|
134 |
+
height: auto;
|
135 |
+
}
|
136 |
+
.gradio-files input, .gradio-radio input, .gradio-textbox textarea, .gradio-button button {
|
137 |
+
width: 100%;
|
138 |
+
padding: 10px;
|
139 |
+
border-radius: 5px;
|
140 |
+
border: none;
|
141 |
+
margin-bottom: 10px;
|
142 |
+
box-sizing: border-box;
|
143 |
+
}
|
144 |
+
.gradio-button button {
|
145 |
+
background: #ff5722;
|
146 |
+
color: #fff;
|
147 |
+
font-weight: bold;
|
148 |
+
cursor: pointer;
|
149 |
+
transition: all 0.3s ease;
|
150 |
+
}
|
151 |
+
.gradio-button button:hover {
|
152 |
+
background: #e64a19;
|
153 |
+
}
|
154 |
'''
|
155 |
|
156 |
with gr.Blocks(css=css) as demo:
|