Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ if uploaded_file:
|
|
53 |
|
54 |
def get_final_output(full_text):
|
55 |
# If the model returns text with the prompt details followed by "### Output:", only keep what comes after it.
|
56 |
-
if "### Output:" in full_text:
|
57 |
return full_text.split("### Output:")[-1].strip()
|
58 |
else:
|
59 |
return full_text.strip()
|
@@ -162,7 +162,7 @@ with tab1:
|
|
162 |
if st.button("Generate Cold Email"):
|
163 |
email = email_chain.run({"recipient_name": recipient, "position_name": position, "research_interests": research_interests, "reason": reason, "resume_text": extracted_text})
|
164 |
final_email = get_final_output(email)
|
165 |
-
st.text_area("Generated Cold Email",
|
166 |
|
167 |
with tab2:
|
168 |
job_title = st.text_input("Job Title")
|
|
|
53 |
|
54 |
def get_final_output(full_text):
|
55 |
# If the model returns text with the prompt details followed by "### Output:", only keep what comes after it.
|
56 |
+
if "### Output:" in full_text: ### Output:
|
57 |
return full_text.split("### Output:")[-1].strip()
|
58 |
else:
|
59 |
return full_text.strip()
|
|
|
162 |
if st.button("Generate Cold Email"):
|
163 |
email = email_chain.run({"recipient_name": recipient, "position_name": position, "research_interests": research_interests, "reason": reason, "resume_text": extracted_text})
|
164 |
final_email = get_final_output(email)
|
165 |
+
st.text_area("Generated Cold Email", final_email, height=250)
|
166 |
|
167 |
with tab2:
|
168 |
job_title = st.text_input("Job Title")
|