tareesh commited on
Commit
6efb1cb
·
1 Parent(s): 2fc1b77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.text_input("Select Language: 1.Hindi, 2.Telugu, 3.Gujarati, 4.Bengali")
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,