Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,13 +10,13 @@ llm = ChatOpenAI(model='gpt-3.5-turbo', temperature=0, max_tokens=150)
|
|
| 10 |
st.header("Translation Application")
|
| 11 |
|
| 12 |
il = st.selectbox(
|
| 13 |
-
"
|
| 14 |
("Hindi", "English", "Bengali"))
|
| 15 |
|
| 16 |
st.write("You selected:", il)
|
| 17 |
|
| 18 |
ol = st.selectbox(
|
| 19 |
-
"
|
| 20 |
("Hindi", "English", "Bengali"))
|
| 21 |
|
| 22 |
st.write("You selected:", ol)
|
|
@@ -26,7 +26,6 @@ prompt = ChatPromptTemplate.from_messages(
|
|
| 26 |
'user', '{i}']
|
| 27 |
)
|
| 28 |
|
| 29 |
-
|
| 30 |
input_text = st.text_area('Input Text', height=300)
|
| 31 |
|
| 32 |
chain = prompt|llm
|
|
|
|
| 10 |
st.header("Translation Application")
|
| 11 |
|
| 12 |
il = st.selectbox(
|
| 13 |
+
"Please select a Language?",
|
| 14 |
("Hindi", "English", "Bengali"))
|
| 15 |
|
| 16 |
st.write("You selected:", il)
|
| 17 |
|
| 18 |
ol = st.selectbox(
|
| 19 |
+
"Please select a Language?",
|
| 20 |
("Hindi", "English", "Bengali"))
|
| 21 |
|
| 22 |
st.write("You selected:", ol)
|
|
|
|
| 26 |
'user', '{i}']
|
| 27 |
)
|
| 28 |
|
|
|
|
| 29 |
input_text = st.text_area('Input Text', height=300)
|
| 30 |
|
| 31 |
chain = prompt|llm
|