Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
223 |
-
source = gr.Textbox(label="原始文本",
|
224 |
-
with gr.Column(scale=
|
225 |
-
target = gr.Textbox(label="翻譯文本",
|
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):
|