Spaces:
Sleeping
Sleeping
venkat charan
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ prompt = ChatPromptTemplate.from_messages([
|
|
11 |
("human", "{input}")
|
12 |
])
|
13 |
|
14 |
-
|
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)
|