Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ text = st.text_area('Enter the text:')
|
|
14 |
|
15 |
if text:
|
16 |
model_inputs = tokenizer_translation(text, return_tensors="pt")
|
17 |
-
lg = st.
|
18 |
if lg==1:
|
19 |
generated_tokens = model_translation.generate(
|
20 |
**model_inputs,
|
|
|
14 |
|
15 |
if text:
|
16 |
model_inputs = tokenizer_translation(text, return_tensors="pt")
|
17 |
+
lg = st.number_input("Select Language: 1.Hindi, 2.Telugu, 3.Gujarati, 4.Bengali")
|
18 |
if lg==1:
|
19 |
generated_tokens = model_translation.generate(
|
20 |
**model_inputs,
|