Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
|
2 |
-
|
3 |
import re
|
4 |
import streamlit as st
|
5 |
|
@@ -11,31 +9,11 @@ from available_models import MODELS
|
|
11 |
st.set_page_config(page_title="Translator", page_icon="🗣️")
|
12 |
st.title("🗣️ Translator")
|
13 |
st.subheader("Translation made fast and easy.")
|
14 |
-
|
15 |
-
[](https://github.com/ChainYo)
|
16 |
-
[](https://huggingface.co/ChainYo)
|
17 |
-
[](https://www.linkedin.com/in/thomas-chaigneau-dev/)
|
18 |
-
[](https://discord.gg/)
|
19 |
-
""")
|
20 |
st.write("To add a new model, hit me up! ⬆️")
|
21 |
|
22 |
with st.expander(label="❓ How does it work", expanded=True):
|
23 |
-
|
24 |
-
**Translator** is a **simple tool** that allows you to **translate text** from one language to another.
|
25 |
-
**Translator** is powered by the [Transformers library](https://huggingface.co/transformers) and uses the
|
26 |
-
[Helsinki-NLP](https://huggingface.co/Helsinki-NLP) models.
|
27 |
-
Choose the **source language**, the **target language** and add some **text to translate**.
|
28 |
-
**Translator** will translate the text and **save the output in a text file**. It cuts the sentences by following
|
29 |
-
the punctuation marks.
|
30 |
-
The output file content will also be displayed in the browser to help you understand the translation and choose
|
31 |
-
if you want to download it.
|
32 |
-
There is **no limit to the number of characters** that can be translated.
|
33 |
-
The only limit is the time you are ready to wait! 🤗
|
34 |
-
*P.S. I have built this tool to help me start writing blog posts in different languages. I am a French native speaker
|
35 |
-
and I will use it to translate my potential future blog posts in English.*
|
36 |
-
*P.P.S. I am a **Junior ML Engineer** passionate about **machine learning** and **data science**. Reach out to me by
|
37 |
-
clicking on the socials badges above.*
|
38 |
-
""")
|
39 |
|
40 |
lang1, lang2 = st.columns(2)
|
41 |
lang1.selectbox(
|
|
|
|
|
|
|
1 |
import re
|
2 |
import streamlit as st
|
3 |
|
|
|
9 |
st.set_page_config(page_title="Translator", page_icon="🗣️")
|
10 |
st.title("🗣️ Translator")
|
11 |
st.subheader("Translation made fast and easy.")
|
12 |
+
|
|
|
|
|
|
|
|
|
|
|
13 |
st.write("To add a new model, hit me up! ⬆️")
|
14 |
|
15 |
with st.expander(label="❓ How does it work", expanded=True):
|
16 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
lang1, lang2 = st.columns(2)
|
19 |
lang1.selectbox(
|