viklofg commited on
Commit
5cabe30
·
1 Parent(s): f9141c6

Switch transcription and image

Browse files

To better match the layout of the Upload tab

Files changed (1) hide show
  1. app/tabs/visualizer.py +6 -8
app/tabs/visualizer.py CHANGED
@@ -53,14 +53,6 @@ with gr.Blocks() as visualizer:
53
  gr.Markdown("# Results")
54
  gr.Markdown("Below is the results from the job that were submitted")
55
  with gr.Row():
56
- # Columns are needed here to get the scale right. The documentation
57
- # claims all components have the `scale` argument but it doesn't
58
- # seem to work for HTML components.
59
-
60
- # Transcription panel
61
- with gr.Column(scale=1):
62
- gr.Markdown("## Transcription")
63
- transcription = gr.HTML(elem_classes="transcription", container=True, max_height="60vh")
64
 
65
  # Annotated image panel
66
  with gr.Column(scale=2):
@@ -72,6 +64,12 @@ with gr.Blocks() as visualizer:
72
  left = gr.Button("← Previous", visible=False, interactive=False, scale=0)
73
  right = gr.Button("Next →", visible=False, scale=0)
74
 
 
 
 
 
 
 
75
  collection = gr.State()
76
  current_page_index = gr.State(0)
77
 
 
53
  gr.Markdown("# Results")
54
  gr.Markdown("Below is the results from the job that were submitted")
55
  with gr.Row():
 
 
 
 
 
 
 
 
56
 
57
  # Annotated image panel
58
  with gr.Column(scale=2):
 
64
  left = gr.Button("← Previous", visible=False, interactive=False, scale=0)
65
  right = gr.Button("Next →", visible=False, scale=0)
66
 
67
+ # Transcription panel
68
+ with gr.Column(scale=1):
69
+ gr.Markdown("## Transcription")
70
+ transcription = gr.HTML(elem_classes="transcription", container=True, max_height="60vh")
71
+
72
+
73
  collection = gr.State()
74
  current_page_index = gr.State(0)
75