linoyts HF staff commited on
Commit
6b97640
1 Parent(s): 9272473

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -108,35 +108,36 @@ def reset_recalc_directions():
108
  css = '''
109
  #group {
110
  position: relative;
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
 
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