Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -108,35 +108,36 @@ def reset_recalc_directions():
|
|
108 |
css = '''
|
109 |
#group {
|
110 |
position: relative;
|
111 |
-
width:
|
112 |
-
height:
|
113 |
margin-bottom: 20px;
|
114 |
background-color: white;
|
115 |
}
|
116 |
|
117 |
#x {
|
118 |
position: absolute;
|
119 |
-
bottom:
|
120 |
-
left:
|
121 |
-
width:
|
122 |
}
|
123 |
|
124 |
#y {
|
125 |
position: absolute;
|
126 |
-
bottom:
|
127 |
-
left:
|
128 |
-
width:
|
129 |
transform: rotate(-90deg);
|
130 |
transform-origin: left bottom;
|
131 |
}
|
132 |
|
133 |
#image_out {
|
134 |
position: absolute;
|
135 |
-
width:
|
136 |
right: 10px;
|
137 |
-
top:
|
138 |
}
|
139 |
|
|
|
140 |
'''
|
141 |
with gr.Blocks(css=css) as demo:
|
142 |
gr.Markdown(f"""# Latent Navigation
|
|
|
108 |
css = '''
|
109 |
#group {
|
110 |
position: relative;
|
111 |
+
width: 600px; /* Increased width */
|
112 |
+
height: 600px; /* Increased height */
|
113 |
margin-bottom: 20px;
|
114 |
background-color: white;
|
115 |
}
|
116 |
|
117 |
#x {
|
118 |
position: absolute;
|
119 |
+
bottom: 80px; /* Increased bottom margin to move further up */
|
120 |
+
left: 30px; /* Adjusted left margin */
|
121 |
+
width: 540px; /* Increased width to match the new container size */
|
122 |
}
|
123 |
|
124 |
#y {
|
125 |
position: absolute;
|
126 |
+
bottom: 160px; /* Increased bottom margin to move further up and avoid overlap */
|
127 |
+
left: 20px; /* Adjusted left margin */
|
128 |
+
width: 540px; /* Increased width to match the new container size */
|
129 |
transform: rotate(-90deg);
|
130 |
transform-origin: left bottom;
|
131 |
}
|
132 |
|
133 |
#image_out {
|
134 |
position: absolute;
|
135 |
+
width: 90%; /* Increased width */
|
136 |
right: 10px;
|
137 |
+
top: 20px; /* Moved further up */
|
138 |
}
|
139 |
|
140 |
+
|
141 |
'''
|
142 |
with gr.Blocks(css=css) as demo:
|
143 |
gr.Markdown(f"""# Latent Navigation
|