Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def main():
|
|
83 |
subject = st.text_input("Email Subject (e.g., About scheduling a meeting)", key="subject")
|
84 |
message = st.text_area("Content of the recipient's email: (e.g., I would like to adjust the time for tomorrow's meeting, are you available in the afternoon?)", key="message")
|
85 |
reply = st.text_input("What you want to say: (e.g., I am available after 2 PM.)", key="reply")
|
86 |
-
if st.button("
|
87 |
result = chain.stream({"sender": sender, "subject": subject, "message": message, "reply": reply})
|
88 |
st.write(result)
|
89 |
|
|
|
83 |
subject = st.text_input("Email Subject (e.g., About scheduling a meeting)", key="subject")
|
84 |
message = st.text_area("Content of the recipient's email: (e.g., I would like to adjust the time for tomorrow's meeting, are you available in the afternoon?)", key="message")
|
85 |
reply = st.text_input("What you want to say: (e.g., I am available after 2 PM.)", key="reply")
|
86 |
+
if st.button("Generate the Reply"):
|
87 |
result = chain.stream({"sender": sender, "subject": subject, "message": message, "reply": reply})
|
88 |
st.write(result)
|
89 |
|