Sobit commited on
Commit
13f63a9
·
verified ·
1 Parent(s): 1dfec0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", email, height=250)
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")