venkat charan commited on
Commit
230873b
·
verified ·
1 Parent(s): 06b73bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,7 +11,7 @@ prompt = ChatPromptTemplate.from_messages([
11
  ("human", "{input}")
12
  ])
13
 
14
- chain = prompt | llm
15
 
16
  # Streamlit interface
17
  st.title("Email Reply Generator")
@@ -22,6 +22,7 @@ user_input = st.text_area("Email Text")
22
 
23
  # Generate and display the response
24
  if st.button("Generate Reply"):
 
25
  response = chain.invoke({"input": user_input})
26
  st.write("Generated Reply:")
27
  st.write(response.content)
 
11
  ("human", "{input}")
12
  ])
13
 
14
+
15
 
16
  # Streamlit interface
17
  st.title("Email Reply Generator")
 
22
 
23
  # Generate and display the response
24
  if st.button("Generate Reply"):
25
+ chain = prompt | llm
26
  response = chain.invoke({"input": user_input})
27
  st.write("Generated Reply:")
28
  st.write(response.content)