Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
0badc10
1
Parent(s):
bd312ad
Update instructions in translation demo
Browse files
app.py
CHANGED
|
@@ -69,14 +69,16 @@ This demo application allows you to use the NLLB model to translate text between
|
|
| 69 |
- The demo is not intended to be used for very long texts.
|
| 70 |
"""
|
| 71 |
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
with gr.Blocks() as demo:
|
| 74 |
gr.Markdown("# No Language Left Behind (NLLB) Translation Demo")
|
| 75 |
gr.Markdown(description)
|
| 76 |
gr.Markdown("## Instructions")
|
| 77 |
-
gr.Markdown(
|
| 78 |
-
gr.Markdown("2. Enter the text you would like to translate.")
|
| 79 |
-
gr.Markdown("3. Click the 'Translate text' button.")
|
| 80 |
with gr.Row():
|
| 81 |
src_lang = gr.Dropdown(label="Source Language", choices=flores_codes)
|
| 82 |
target_lang = gr.Dropdown(label="Target Language", choices=flores_codes)
|
|
|
|
| 69 |
- The demo is not intended to be used for very long texts.
|
| 70 |
"""
|
| 71 |
|
| 72 |
+
instructions = """
|
| 73 |
+
1. Select the source and target language from the dropdown menus.
|
| 74 |
+
2. Enter the text you would like to translate.
|
| 75 |
+
3. Click the 'Translate text' button.
|
| 76 |
+
"""
|
| 77 |
with gr.Blocks() as demo:
|
| 78 |
gr.Markdown("# No Language Left Behind (NLLB) Translation Demo")
|
| 79 |
gr.Markdown(description)
|
| 80 |
gr.Markdown("## Instructions")
|
| 81 |
+
gr.Markdown(instructions)
|
|
|
|
|
|
|
| 82 |
with gr.Row():
|
| 83 |
src_lang = gr.Dropdown(label="Source Language", choices=flores_codes)
|
| 84 |
target_lang = gr.Dropdown(label="Target Language", choices=flores_codes)
|