TiberiuCristianLeon commited on
Commit
1c85a34
·
verified ·
1 Parent(s): d1f465b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,14 +1,12 @@
1
  import streamlit as st
2
  from transformers import T5Tokenizer, T5ForConditionalGeneration
3
 
4
- # "Helsinki-NLP/opus-mt-en-ro")
5
-
6
  # Create the app layout
7
  st.title("Text Translation")
8
  input_text = st.text_input("Enter text to translate:")
9
  # Create a list of options for the select box
10
  options = ["English", "Romanian", "German", "French", "Spanish"]
11
- models = ["t5-base", "t5-small", "t5-large", "opus-mt-en-ro"]
12
  # Create the select box
13
  sselected_language = st.selectbox("Select a source language:", options)
14
  tselected_language = st.selectbox("Select a target language:", options)
 
1
  import streamlit as st
2
  from transformers import T5Tokenizer, T5ForConditionalGeneration
3
 
 
 
4
  # Create the app layout
5
  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", "Helsinki-NLP/opus-mt-en-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)