Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,13 +16,12 @@ theme = gr.themes.Soft(font=font)
|
|
| 16 |
with gr.Blocks(title=title, theme=theme) as app:
|
| 17 |
gr.Markdown("# 簡繁轉換小工具 OpenCC Converter")
|
| 18 |
|
| 19 |
-
with gr.
|
| 20 |
-
with gr.
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
options = gr.Dropdown(rev_config_keys, value=rev_config_keys[0], label="轉換選項")
|
| 26 |
|
| 27 |
with gr.Row():
|
| 28 |
conv_btn = gr.Button("轉換")
|
|
|
|
| 16 |
with gr.Blocks(title=title, theme=theme) as app:
|
| 17 |
gr.Markdown("# 簡繁轉換小工具 OpenCC Converter")
|
| 18 |
|
| 19 |
+
with gr.Row():
|
| 20 |
+
with gr.Column():
|
| 21 |
+
inn_text = gr.TextArea(label="輸入文字", show_copy_button=True)
|
| 22 |
+
with gr.Column():
|
| 23 |
+
out_text = gr.TextArea(label="輸出文字", show_copy_button=True)
|
| 24 |
+
options = gr.Dropdown(rev_config_keys, value=rev_config_keys[0], label="轉換選項")
|
|
|
|
| 25 |
|
| 26 |
with gr.Row():
|
| 27 |
conv_btn = gr.Button("轉換")
|