venkat charan commited on
Commit
00062b4
·
verified ·
1 Parent(s): 6a0c258

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -13,16 +13,14 @@ prompt = ChatPromptTemplate.from_messages([
13
 
14
 
15
 
16
- # Streamlit interface
17
  st.title("Email Reply Generator")
18
  st.write("Enter the email text you want a reply for:")
19
 
20
- # User input
21
- user_input = st.text_area("Email Text")
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)
 
13
 
14
 
15
 
 
16
  st.title("Email Reply Generator")
17
  st.write("Enter the email text you want a reply for:")
18
 
 
 
19
 
20
+ email_input = st.text_area("Email Text")
21
+
22
  if st.button("Generate Reply"):
23
  chain = prompt | llm
24
+ response = chain.invoke({"input": email_input})
25
+ st.write("Generated Email Reply:")
26
  st.write(response.content)