Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,18 @@ def feifeichat(image):
|
|
| 138 |
print(f"Error: {e}")
|
| 139 |
return "Please upload a photo"
|
| 140 |
|
| 141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
|
| 143 |
examples = [
|
| 144 |
"a beautiful woman with blonde hair and blue eyes",
|
|
@@ -147,7 +158,7 @@ examples = [
|
|
| 147 |
]
|
| 148 |
|
| 149 |
# Build the Gradio UI with Blocks
|
| 150 |
-
with gr.Blocks(theme=theme, css=
|
| 151 |
# Add a title to the app
|
| 152 |
gr.HTML("<center><h1>FLUX.1-Dev</h1></center>")
|
| 153 |
with gr.Tabs() as tabs:
|
|
|
|
| 138 |
print(f"Error: {e}")
|
| 139 |
return "Please upload a photo"
|
| 140 |
|
| 141 |
+
# CSS to style the app
|
| 142 |
+
css = """
|
| 143 |
+
.gradio-container {background-color: MediumAquaMarine}
|
| 144 |
+
#app-container {
|
| 145 |
+
max-width: 930px;
|
| 146 |
+
margin-left: auto;
|
| 147 |
+
margin-right: auto;
|
| 148 |
+
}
|
| 149 |
+
footer {
|
| 150 |
+
visibility: hidden;
|
| 151 |
+
}
|
| 152 |
+
"""
|
| 153 |
|
| 154 |
examples = [
|
| 155 |
"a beautiful woman with blonde hair and blue eyes",
|
|
|
|
| 158 |
]
|
| 159 |
|
| 160 |
# Build the Gradio UI with Blocks
|
| 161 |
+
with gr.Blocks(theme=theme, css=css) as app:
|
| 162 |
# Add a title to the app
|
| 163 |
gr.HTML("<center><h1>FLUX.1-Dev</h1></center>")
|
| 164 |
with gr.Tabs() as tabs:
|