Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ if st.session_state['usage_count'] < max_uses:
|
|
| 58 |
en_input_reply = st.text_input("What you want to say: (e.g., I am available after 2 PM.)", key="en_input_reply")
|
| 59 |
submit_en = st.form_submit_button("Generate an Email Reply")
|
| 60 |
if submit_en:
|
| 61 |
-
result = generate_reply(en_input_sender, en_input_subject, en_input_message, en_input_reply,
|
| 62 |
st.write(result)
|
| 63 |
else:
|
| 64 |
# Japanese Input Section
|
|
@@ -70,7 +70,7 @@ if st.session_state['usage_count'] < max_uses:
|
|
| 70 |
ja_input_reply = st.text_input("伝えたいこと: (例:午後2時以降は空いています。)", key="ja_input_reply")
|
| 71 |
submit_ja = st.form_submit_button("Eメールの返信を生成する")
|
| 72 |
if submit_ja:
|
| 73 |
-
result = generate_reply(ja_input_sender, ja_input_subject, ja_input_message, ja_input_reply,
|
| 74 |
st.write(result)
|
| 75 |
else:
|
| 76 |
st.error("You have reached your maximum usage limit.")
|
|
|
|
| 58 |
en_input_reply = st.text_input("What you want to say: (e.g., I am available after 2 PM.)", key="en_input_reply")
|
| 59 |
submit_en = st.form_submit_button("Generate an Email Reply")
|
| 60 |
if submit_en:
|
| 61 |
+
result = generate_reply(en_input_sender, en_input_subject, en_input_message, en_input_reply, "English")
|
| 62 |
st.write(result)
|
| 63 |
else:
|
| 64 |
# Japanese Input Section
|
|
|
|
| 70 |
ja_input_reply = st.text_input("伝えたいこと: (例:午後2時以降は空いています。)", key="ja_input_reply")
|
| 71 |
submit_ja = st.form_submit_button("Eメールの返信を生成する")
|
| 72 |
if submit_ja:
|
| 73 |
+
result = generate_reply(ja_input_sender, ja_input_subject, ja_input_message, ja_input_reply, "Japanese")
|
| 74 |
st.write(result)
|
| 75 |
else:
|
| 76 |
st.error("You have reached your maximum usage limit.")
|