Spaces:
Sleeping
Sleeping
Ubuntu
commited on
Commit
·
e3808d6
1
Parent(s):
c8ef715
Remove max tokens slider and simplify interface
Browse files
app.py
CHANGED
@@ -34,7 +34,6 @@ def respond(message, translation_choice):
|
|
34 |
elif translation_choice == "English to Moroccan Arabic":
|
35 |
return translate_eng_to_darija(message, direction="eng_to_darija")
|
36 |
|
37 |
-
|
38 |
# Gradio Interface Layout with organized components
|
39 |
with gr.Blocks() as demo:
|
40 |
with gr.Row():
|
@@ -49,8 +48,16 @@ with gr.Blocks() as demo:
|
|
49 |
Select the translation direction and type your text. <br>
|
50 |
Get quick translations between **English** and **Moroccan Arabic (Darija)** or **Darija to Modern Standard Arabic (MSA)**! 🔥
|
51 |
</p>
|
52 |
-
<
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
""")
|
55 |
|
56 |
with gr.Column():
|
@@ -78,3 +85,4 @@ demo.launch()
|
|
78 |
|
79 |
|
80 |
|
|
|
|
34 |
elif translation_choice == "English to Moroccan Arabic":
|
35 |
return translate_eng_to_darija(message, direction="eng_to_darija")
|
36 |
|
|
|
37 |
# Gradio Interface Layout with organized components
|
38 |
with gr.Blocks() as demo:
|
39 |
with gr.Row():
|
|
|
48 |
Select the translation direction and type your text. <br>
|
49 |
Get quick translations between **English** and **Moroccan Arabic (Darija)** or **Darija to Modern Standard Arabic (MSA)**! 🔥
|
50 |
</p>
|
51 |
+
<p style="text-align: center;">
|
52 |
+
This demo uses two advanced models:<br>
|
53 |
+
- **English to Moroccan Arabic (Darija)**<br>
|
54 |
+
- **Moroccan Arabic (Darija) to Modern Standard Arabic (MSA)**<br>
|
55 |
+
Choose your desired translation direction and get started!<br>
|
56 |
+
</p>
|
57 |
+
<p style="text-align: center;">
|
58 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Flag_of_Morocco.svg/800px-Flag_of_Morocco.svg.png"
|
59 |
+
style="width: 150px; display: block; margin: 20px auto;" alt="Moroccan Flag" />
|
60 |
+
</p>
|
61 |
""")
|
62 |
|
63 |
with gr.Column():
|
|
|
85 |
|
86 |
|
87 |
|
88 |
+
|