Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ st.title("Text Translation")
|
|
| 6 |
input_text = st.text_input("Enter text to translate:")
|
| 7 |
# Create a list of options for the select box
|
| 8 |
options = ["English", "Romanian", "German", "French", "Spanish"]
|
| 9 |
-
models = ["t5-base", "t5-small", "t5-large", "mt5-base", "
|
| 10 |
# Create the select box
|
| 11 |
sselected_language = st.selectbox("Select a source language:", options)
|
| 12 |
tselected_language = st.selectbox("Select a target language:", options)
|
|
|
|
| 6 |
input_text = st.text_input("Enter text to translate:")
|
| 7 |
# Create a list of options for the select box
|
| 8 |
options = ["English", "Romanian", "German", "French", "Spanish"]
|
| 9 |
+
models = ["t5-base", "t5-small", "t5-large", "google/mt5-base", "helsinki-nlp/opus-mt-de-ro"]
|
| 10 |
# Create the select box
|
| 11 |
sselected_language = st.selectbox("Select a source language:", options)
|
| 12 |
tselected_language = st.selectbox("Select a target language:", options)
|