Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -111,33 +111,38 @@ css = '''
|
|
111 |
width: 420px;
|
112 |
height: 420px;
|
113 |
margin-bottom: 20px;
|
114 |
-
background-color: white
|
115 |
}
|
|
|
116 |
#x {
|
117 |
position: absolute;
|
118 |
-
bottom:
|
119 |
left: 25px;
|
120 |
width: 400px;
|
121 |
}
|
|
|
122 |
#y {
|
123 |
position: absolute;
|
124 |
-
bottom:
|
125 |
-
left:
|
126 |
width: 400px;
|
127 |
transform: rotate(-90deg);
|
128 |
transform-origin: left bottom;
|
129 |
}
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
'''
|
132 |
with gr.Blocks(css=css) as demo:
|
133 |
-
gr.Markdown("""
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
<div style="text-align: center; font-size: 16px; margin-bottom: 20px;">
|
138 |
-
Explorations in CLIP Space 🪐
|
139 |
-
</div>
|
140 |
-
""")
|
141 |
|
142 |
x_concept_1 = gr.State("")
|
143 |
x_concept_2 = gr.State("")
|
|
|
111 |
width: 420px;
|
112 |
height: 420px;
|
113 |
margin-bottom: 20px;
|
114 |
+
background-color: white;
|
115 |
}
|
116 |
+
|
117 |
#x {
|
118 |
position: absolute;
|
119 |
+
bottom: 40px; /* Ensure there is enough space below the image */
|
120 |
left: 25px;
|
121 |
width: 400px;
|
122 |
}
|
123 |
+
|
124 |
#y {
|
125 |
position: absolute;
|
126 |
+
bottom: 100px; /* Adjusted to ensure no overlap with #x and not too close to the top */
|
127 |
+
left: 10px; /* Adjusted to ensure it's not too close to the edge and not overlapping the image */
|
128 |
width: 400px;
|
129 |
transform: rotate(-90deg);
|
130 |
transform-origin: left bottom;
|
131 |
}
|
132 |
+
|
133 |
+
#image_out {
|
134 |
+
position: absolute;
|
135 |
+
width: 80%;
|
136 |
+
right: 10px;
|
137 |
+
top: 10px; /* Ensure there is enough space for both sliders below */
|
138 |
+
}
|
139 |
+
|
140 |
'''
|
141 |
with gr.Blocks(css=css) as demo:
|
142 |
+
gr.Markdown(f"""# Latent Navigation
|
143 |
+
## Exploring CLIP text space with FLUX.1 schnell 🪐
|
144 |
+
[[code](https://github.com/linoytsaban/semantic-sliders)]
|
145 |
+
""")
|
|
|
|
|
|
|
|
|
146 |
|
147 |
x_concept_1 = gr.State("")
|
148 |
x_concept_2 = gr.State("")
|