Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,34 +118,17 @@ def reset_recalc_directions():
|
|
| 118 |
return True
|
| 119 |
|
| 120 |
|
| 121 |
-
|
| 122 |
-
<div style="display: flex;align-items: center;justify-content: center">
|
| 123 |
-
<img src="https://huggingface.co/spaces/LatentNavigation/latentnavigation-flux/resolve/main/Group 4-16.png" width="120" style="display: inline-block">
|
| 124 |
-
<h1 style="margin-left: 12px;text-align: center;margin-bottom: 7px;display: inline-block;font-size:2.25em">Latent Navigation</h1>
|
| 125 |
-
</div>
|
| 126 |
-
<div style="display: flex;align-items: center;justify-content: center">
|
| 127 |
-
<h3 style="display: inline-block;margin-left: 10px;margin-top: 6px;font-weight: 500">Exploring CLIP text space with FLUX.1 schnell 🪐</h3>
|
| 128 |
-
</div>
|
| 129 |
-
<p style="font-size: 0.95rem;margin: 0rem;line-height: 1.2em;margin-top:1em;display: inline-block">
|
| 130 |
-
<a href="https://github.com/linoytsaban/semantic-sliders" target="_blank">Semantic Sliders repo</a>
|
| 131 |
-
|
|
| 132 |
-
<a href="https://www.ethansmith2000.com/post/traversing-through-clip-space-pca-and-latent-directions" target="_blank">based on Ethan Smith's CLIP directions</a>
|
| 133 |
-
|
|
| 134 |
-
<a href="https://huggingface.co/spaces/LatentNavigation/latentnavigation-flux?duplicate=true" target="_blank" style="
|
| 135 |
-
display: inline-block;
|
| 136 |
-
">
|
| 137 |
-
<img style="margin-top: -1em;margin-bottom: 0em;position: absolute;" src="https://bit.ly/3CWLGkA" alt="Duplicate Space"></a>
|
| 138 |
-
</p>
|
| 139 |
-
"""
|
| 140 |
-
css='''
|
| 141 |
-
#strip, #video{max-height: 256px; min-height: 80px}
|
| 142 |
-
#video .empty{min-height: 80px}
|
| 143 |
-
#strip img{object-fit: cover}
|
| 144 |
-
.gradio-container{max-width: 960px !important}
|
| 145 |
-
'''
|
| 146 |
examples = [["a dog in the park", "winter", "summer", 1.5], ["a house", "USA suburb", "Europe", 2.5], ["a tomato", "rotten", "super fresh", 2.5]]
|
| 147 |
|
| 148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
gr.HTML(intro)
|
| 151 |
|
|
|
|
| 118 |
return True
|
| 119 |
|
| 120 |
|
| 121 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
examples = [["a dog in the park", "winter", "summer", 1.5], ["a house", "USA suburb", "Europe", 2.5], ["a tomato", "rotten", "super fresh", 2.5]]
|
| 123 |
|
| 124 |
+
css = """
|
| 125 |
+
footer {
|
| 126 |
+
visibility: hidden;
|
| 127 |
+
}
|
| 128 |
+
"""
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
| 132 |
|
| 133 |
gr.HTML(intro)
|
| 134 |
|