Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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":
|
| 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 |
|