Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,6 +114,35 @@ def add_gallery(image, model_str, gallery):
|
|
| 114 |
return gallery
|
| 115 |
|
| 116 |
with gr.Blocks(fill_width=True) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
with gr.Tab(str(num_models) + ' Models'):
|
| 118 |
with gr.Column(scale=2):
|
| 119 |
with gr.Group():
|
|
|
|
| 114 |
return gallery
|
| 115 |
|
| 116 |
with gr.Blocks(fill_width=True) as demo:
|
| 117 |
+
|
| 118 |
+
gr.HTML(f"""
|
| 119 |
+
<style>
|
| 120 |
+
#notworkingBanner{
|
| 121 |
+
background-color: red;
|
| 122 |
+
padding: 1em;
|
| 123 |
+
display: flex;
|
| 124 |
+
align-items: center;
|
| 125 |
+
justify-content: center;
|
| 126 |
+
flex-direction: column;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
#notworkingBanner h1{
|
| 130 |
+
color:white;
|
| 131 |
+
font-size:2em;
|
| 132 |
+
}
|
| 133 |
+
#notworkingBanner p{
|
| 134 |
+
color:white;
|
| 135 |
+
font-weight:500;
|
| 136 |
+
font-size:1.2em;
|
| 137 |
+
}
|
| 138 |
+
</style>
|
| 139 |
+
<div id="notworkingBanner">
|
| 140 |
+
<h1>NOT WORKING!!</h1>
|
| 141 |
+
<p>Thanks to the updates by the HF gods, this space doesn't work anymore. Yes - HF isn't a stable code base; don't use the backend for anything important.<br/>
|
| 142 |
+
I know this sucks - and if you (like me) a little miffed about that: go to the forum and open a complaint. Maybe (just maybe) this will get some attention.</p>
|
| 143 |
+
</div>
|
| 144 |
+
""")
|
| 145 |
+
|
| 146 |
with gr.Tab(str(num_models) + ' Models'):
|
| 147 |
with gr.Column(scale=2):
|
| 148 |
with gr.Group():
|