Spaces:
Runtime error
Runtime error
Mamadou2727
commited on
update
Browse files
app.py
CHANGED
@@ -40,18 +40,17 @@ def translate(text, candidates: int):
|
|
40 |
|
41 |
with gr.Blocks() as app:
|
42 |
markdown = r"""
|
43 |
-
#
|
44 |
-
|
45 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/63cc1d4bf488db9bb3c6449e/AtOKLAaL5kt0VhRsxE0vf.png" width="500" height="300">
|
46 |
|
47 |
-
|
48 |
|
49 |
## Intended Uses & Limitations
|
50 |
|
51 |
This model is intended for academic research and practical applications in machine translation. It can be used to translate French text to Zarma and vice versa. Users should note that the model's performance may vary based on the complexity and context of the input text.
|
52 |
|
53 |
## Authors:
|
54 |
-
The project, **
|
55 |
|
56 |
## Citations
|
57 |
|
@@ -70,9 +69,9 @@ with gr.Blocks() as app:
|
|
70 |
with gr.Row():
|
71 |
gr.Markdown(markdown)
|
72 |
with gr.Column():
|
73 |
-
input_text = gr.components.Textbox(lines=7, label="
|
74 |
return_seqs = gr.Slider(label="Number of return sequences", value=1, minimum=1, maximum=12, step=1)
|
75 |
-
outputs = gr.Textbox(lines=7, label="
|
76 |
|
77 |
translate_btn = gr.Button("Traduis!")
|
78 |
translate_btn.click(translate, inputs=[input_text, return_seqs], outputs=outputs)
|
|
|
40 |
|
41 |
with gr.Blocks() as app:
|
42 |
markdown = r"""
|
43 |
+
# FERIJI Translator, The First French-Zarma Translator
|
|
|
44 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/63cc1d4bf488db9bb3c6449e/AtOKLAaL5kt0VhRsxE0vf.png" width="500" height="300">
|
45 |
|
46 |
+
This is a beta version of the French to Zarma translator.
|
47 |
|
48 |
## Intended Uses & Limitations
|
49 |
|
50 |
This model is intended for academic research and practical applications in machine translation. It can be used to translate French text to Zarma and vice versa. Users should note that the model's performance may vary based on the complexity and context of the input text.
|
51 |
|
52 |
## Authors:
|
53 |
+
The project, **FERIJI**, was curated by **Elysabhete Ibrahim Amadou**, **Habibatou Abdoulaye Alfari**, **Adwoa Bremang**, **Dennis Owusu**, **Mamadou K. KEITA** and **Dr Christopher Homan**, with the aim to enhance linguistic studies for Zarma.
|
54 |
|
55 |
## Citations
|
56 |
|
|
|
69 |
with gr.Row():
|
70 |
gr.Markdown(markdown)
|
71 |
with gr.Column():
|
72 |
+
input_text = gr.components.Textbox(lines=7, label="Français/French", value="")
|
73 |
return_seqs = gr.Slider(label="Number of return sequences", value=1, minimum=1, maximum=12, step=1)
|
74 |
+
outputs = gr.Textbox(lines=7, label="Zarma")
|
75 |
|
76 |
translate_btn = gr.Button("Traduis!")
|
77 |
translate_btn.click(translate, inputs=[input_text, return_seqs], outputs=outputs)
|