yashasgupta commited on
Commit
75978fd
·
verified ·
1 Parent(s): bb407cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -4,12 +4,21 @@ from langchain_openai import ChatOpenAI
4
 
5
  from langchain_core.prompts import ChatPromptTemplate
6
 
 
 
 
7
  os.environ["OPENAI_API_KEY"] = os.getenv("k1")
8
 
9
  st.markdown("Translation Application")
10
 
11
  options = ["English","Telugu","Hindi"]
12
 
 
 
 
 
 
 
13
  st.selectbox('Choose an option:', options)
14
 
15
  llm = ChatOpenAI(model = "gpt-3.5-turbo",temperature = 0)
 
4
 
5
  from langchain_core.prompts import ChatPromptTemplate
6
 
7
+ import os
8
+
9
+
10
  os.environ["OPENAI_API_KEY"] = os.getenv("k1")
11
 
12
  st.markdown("Translation Application")
13
 
14
  options = ["English","Telugu","Hindi"]
15
 
16
+ st.write("Input langauge")
17
+
18
+ st.selectbox('Choose an option:', options)
19
+
20
+ st.write("Output langauge")
21
+
22
  st.selectbox('Choose an option:', options)
23
 
24
  llm = ChatOpenAI(model = "gpt-3.5-turbo",temperature = 0)