350016z commited on
Commit
5593363
·
verified ·
1 Parent(s): 8d63e15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -211,18 +211,19 @@ with gr.Blocks() as demo:
211
  gr.Markdown(DEMO_EXPLANATION)
212
 
213
  with gr.Tab("標記工具"):
214
- with gr.Row():
215
  with gr.Column(scale=1):
216
  with gr.Row(equal_height=True):
217
  rater_selector = gr.Dropdown(label="標註人員", choices=rater, value="rater1")
 
218
  file_selector = gr.Dropdown(label="選擇檔案", choices=csv_files, value="test.csv")
219
  with gr.Row(equal_height=True):
220
  index_selector = gr.Dropdown(label="選擇索引", choices=get_all_ids(), value=0)
221
  current_index_display = gr.Textbox(label="當前索引", value=str(current_index), interactive=False)
222
- with gr.Column(scale=7):
223
- source = gr.Textbox(label="原始文本", lines=10, interactive=False)
224
- with gr.Column(scale=7):
225
- target = gr.Textbox(label="翻譯文本", lines=10, interactive=False)
226
 
227
  with gr.Row(variant='panel', equal_height=True):
228
  with gr.Column(scale=1):
 
211
  gr.Markdown(DEMO_EXPLANATION)
212
 
213
  with gr.Tab("標記工具"):
214
+ with gr.Row(equal_height=True):
215
  with gr.Column(scale=1):
216
  with gr.Row(equal_height=True):
217
  rater_selector = gr.Dropdown(label="標註人員", choices=rater, value="rater1")
218
+ with gr.Row(equal_height=True):
219
  file_selector = gr.Dropdown(label="選擇檔案", choices=csv_files, value="test.csv")
220
  with gr.Row(equal_height=True):
221
  index_selector = gr.Dropdown(label="選擇索引", choices=get_all_ids(), value=0)
222
  current_index_display = gr.Textbox(label="當前索引", value=str(current_index), interactive=False)
223
+ with gr.Column(scale=3):
224
+ source = gr.Textbox(label="原始文本", interactive=False)
225
+ with gr.Column(scale=3):
226
+ target = gr.Textbox(label="翻譯文本", interactive=False)
227
 
228
  with gr.Row(variant='panel', equal_height=True):
229
  with gr.Column(scale=1):