Spaces:
Sleeping
Sleeping
github update
Browse files
translator_app/translator/services/__pycache__/translation_service.cpython-314.pyc
CHANGED
|
Binary files a/translator_app/translator/services/__pycache__/translation_service.cpython-314.pyc and b/translator_app/translator/services/__pycache__/translation_service.cpython-314.pyc differ
|
|
|
translator_app/translator/templates/translator/translator.html
CHANGED
|
@@ -6,21 +6,28 @@
|
|
| 6 |
<div class="flex flex-wrap justify-center items-center gap-3 mb-5">
|
| 7 |
<select id="source-language" aria-label="Source language"
|
| 8 |
class="rounded-full border-stone-200 bg-white px-5 py-2.5 text-sm font-semibold text-primary shadow-sm focus:border-primary focus:ring-primary">
|
| 9 |
-
<option value="">Detect language</option>
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
</select>
|
| 12 |
<button id="swap-languages" type="button" title="Swap languages"
|
| 13 |
class="rounded-full bg-sand px-3 py-2.5 text-primary transition hover:rotate-180">⇄</button>
|
| 14 |
<select id="target-language" aria-label="Target language"
|
| 15 |
class="rounded-full border-stone-200 bg-white px-5 py-2.5 text-sm font-semibold text-primary shadow-sm focus:border-primary focus:ring-primary">
|
| 16 |
-
{% for language in languages %}
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 18 |
</select>
|
| 19 |
<label
|
| 20 |
class="flex items-center gap-2 rounded-full border border-stone-200 bg-white px-4 py-2 text-sm font-semibold text-stone-600 shadow-sm">Model
|
| 21 |
<select id="translation-model" aria-label="Translation model"
|
| 22 |
class="border-0 bg-transparent py-0 pl-1 pr-7 text-primary focus:ring-0">
|
| 23 |
-
{% for value, label in models %}<option value="{{ value }}" {% if value==default_model %} selected{% endif %}>
|
| 24 |
{{ label }}</option>{% endfor %}
|
| 25 |
</select>
|
| 26 |
</label>
|
|
|
|
| 6 |
<div class="flex flex-wrap justify-center items-center gap-3 mb-5">
|
| 7 |
<select id="source-language" aria-label="Source language"
|
| 8 |
class="rounded-full border-stone-200 bg-white px-5 py-2.5 text-sm font-semibold text-primary shadow-sm focus:border-primary focus:ring-primary">
|
| 9 |
+
<option value="">Detect language</option>
|
| 10 |
+
{% for language in languages %}
|
| 11 |
+
<option value="{{ language.code }}" {% if language.code == 'en' %}selected{% endif %}>
|
| 12 |
+
{{ language.name }}
|
| 13 |
+
</option>
|
| 14 |
+
{% endfor %}
|
| 15 |
</select>
|
| 16 |
<button id="swap-languages" type="button" title="Swap languages"
|
| 17 |
class="rounded-full bg-sand px-3 py-2.5 text-primary transition hover:rotate-180">⇄</button>
|
| 18 |
<select id="target-language" aria-label="Target language"
|
| 19 |
class="rounded-full border-stone-200 bg-white px-5 py-2.5 text-sm font-semibold text-primary shadow-sm focus:border-primary focus:ring-primary">
|
| 20 |
+
{% for language in languages %}
|
| 21 |
+
<option value="{{ language.code }}" {% if language.code == 'sw' %} selected{% endif%}>
|
| 22 |
+
{{ language.name }}
|
| 23 |
+
</option>
|
| 24 |
+
{% endfor %}
|
| 25 |
</select>
|
| 26 |
<label
|
| 27 |
class="flex items-center gap-2 rounded-full border border-stone-200 bg-white px-4 py-2 text-sm font-semibold text-stone-600 shadow-sm">Model
|
| 28 |
<select id="translation-model" aria-label="Translation model"
|
| 29 |
class="border-0 bg-transparent py-0 pl-1 pr-7 text-primary focus:ring-0">
|
| 30 |
+
{% for value, label in models %}<option value="{{ value }}" {% if value == default_model %} selected{% endif %}>
|
| 31 |
{{ label }}</option>{% endfor %}
|
| 32 |
</select>
|
| 33 |
</label>
|