linoyts HF staff commited on
Commit
07b6090
1 Parent(s): 0e0848a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -116,14 +116,14 @@ css = '''
116
 
117
  #x {
118
  position: absolute;
119
- bottom: 140px; /* Further 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: 220px; /* Increased bottom margin to accommodate the larger #x position */
127
  left: 20px; /* Adjusted left margin */
128
  width: 540px; /* Increased width to match the new container size */
129
  transform: rotate(-90deg);
@@ -132,13 +132,11 @@ css = '''
132
 
133
  #image_out {
134
  position: absolute;
135
- width: 90%; /* Maintain the increased width */
136
  right: 10px;
137
- top: 30px; /* Moved further up to ensure no overlap with #x */
138
  }
139
 
140
-
141
-
142
  '''
143
  with gr.Blocks(css=css) as demo:
144
  gr.Markdown(f"""# Latent Navigation
 
116
 
117
  #x {
118
  position: absolute;
119
+ bottom: 100px; /* Further increased bottom margin to move it below the image */
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: 200px; /* Increased bottom margin to ensure proper spacing from #x */
127
  left: 20px; /* Adjusted left margin */
128
  width: 540px; /* Increased width to match the new container size */
129
  transform: rotate(-90deg);
 
132
 
133
  #image_out {
134
  position: absolute;
135
+ width: 80%; /* Adjust width as needed */
136
  right: 10px;
137
+ top: 50px; /* Moved further up to ensure it does not overlap with #x slider */
138
  }
139
 
 
 
140
  '''
141
  with gr.Blocks(css=css) as demo:
142
  gr.Markdown(f"""# Latent Navigation