yashasgupta commited on
Commit
d311da2
·
verified ·
1 Parent(s): 185006c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,11 +13,11 @@ st.title("Translation Application :robot_face:")
13
 
14
  options1 = ["English","Telugu","Hindi","French","German","Russian","Spanish"]
15
 
16
- st.selectbox("Input Langauge: ",options1)
17
 
18
  options2 = ["Hindi","Telugu","Spanish","English","German","Russian","French"]
19
 
20
- st.selectbox("Output langauge: ",options2)
21
 
22
  text = st.text_input("Text Input: ")
23
 
@@ -30,7 +30,7 @@ if st.button("Submit"):
30
 
31
  chain = prompt|llm
32
 
33
- re = chain.invoke({"il":options1,"ol":options2, "i":text})
34
 
35
  st.write("Response: ")
36
 
 
13
 
14
  options1 = ["English","Telugu","Hindi","French","German","Russian","Spanish"]
15
 
16
+ input_langauge = st.selectbox("Input Langauge: ",options1)
17
 
18
  options2 = ["Hindi","Telugu","Spanish","English","German","Russian","French"]
19
 
20
+ output_langauge = st.selectbox("Output langauge: ",options2)
21
 
22
  text = st.text_input("Text Input: ")
23
 
 
30
 
31
  chain = prompt|llm
32
 
33
+ re = chain.invoke({"il":input_langauge,"ol":output_langauge, "i":text})
34
 
35
  st.write("Response: ")
36