Spaces:
Sleeping
Sleeping
venkat charan
commited on
Update app.py
Browse files
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 |
-
|
|
|
|
| 24 |
if st.button("Generate Reply"):
|
| 25 |
chain = prompt | llm
|
| 26 |
-
response = chain.invoke({"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)
|