zhangziang commited on
Commit
53a5272
·
1 Parent(s): f772fe2

layout adjust

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -175,17 +175,17 @@ with gr.Blocks(title="Orient-Anything Demo") as demo:
175
 
176
  # 文本输出放在图像下方
177
  with gr.Row():
178
- with gr.Column():
179
  gr.Markdown("### Absolute Pose (Reference)")
180
- az_out = gr.Textbox(label="Azimuth (0~360°)")
181
- el_out = gr.Textbox(label="Polar (-90~90°)")
182
- ro_out = gr.Textbox(label="Rotation (-90~90°)")
183
- alpha_out = gr.Textbox(label="Number of Directions (0/1/2/4)")
184
- with gr.Column():
185
  gr.Markdown("### Relative Pose (Target w.r.t Reference)")
186
- rel_az_out = gr.Textbox(label="Relative Azimuth (0~360°)")
187
- rel_el_out = gr.Textbox(label="Relative Polar (-90~90°)")
188
- rel_ro_out = gr.Textbox(label="Relative Rotation (-90~90°)")
189
 
190
  # 绑定点击事件
191
  run_btn.click(
 
175
 
176
  # 文本输出放在图像下方
177
  with gr.Row():
178
+ with gr.Column(scale=1):
179
  gr.Markdown("### Absolute Pose (Reference)")
180
+ az_out = gr.Textbox(label="Azimuth (0~360°)",scale=0.9)
181
+ el_out = gr.Textbox(label="Polar (-90~90°)",scale=0.9)
182
+ ro_out = gr.Textbox(label="Rotation (-90~90°)",scale=0.9)
183
+ alpha_out = gr.Textbox(label="Number of Directions (0/1/2/4)",scale=0.9)
184
+ with gr.Column(scale=1):
185
  gr.Markdown("### Relative Pose (Target w.r.t Reference)")
186
+ rel_az_out = gr.Textbox(label="Relative Azimuth (0~360°)",scale=0.9)
187
+ rel_el_out = gr.Textbox(label="Relative Polar (-90~90°)",scale=0.9)
188
+ rel_ro_out = gr.Textbox(label="Relative Rotation (-90~90°)",scale=0.9)
189
 
190
  # 绑定点击事件
191
  run_btn.click(