hruday96 commited on
Commit
f881b91
·
verified ·
1 Parent(s): b7e5f96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -10,12 +10,20 @@ GOOGLE_API_KEY = st.secrets["GEMINI_API_KEY"]
10
  # Configure the Google Generative AI API with your API key
11
  genai.configure(api_key=GOOGLE_API_KEY)
12
 
13
- # Input field for the medicine name
14
- st.subheader("Enter Candidate Details:")
15
- candidate_name = st.text_input('Candidate Name', '')
16
- candidate_designation = st.text_input('Candidate Designation', '')
17
- candidate_details = st.text_input('Candidate Details- Skills, Experience. (comma separated)', '')
18
- job_description = st.text_area('Your Job Description: ', '')
 
 
 
 
 
 
 
 
19
 
20
  # Dropdown menu for tone selection
21
  st.subheader("Select the Tone of the Message:")
@@ -58,9 +66,8 @@ if linkedin_invite or email_invite or whatsapp_invite:
58
  {job_description}
59
 
60
  ### Tasks:
61
- 1. Create a personalized {message_type.lower()} message for candidate outreach.
62
- 2. Ensure the tone is {selected_tone.lower()} and aligns with professional standards.
63
- 3. Provide a brief summary of why the candidate is a good fit for the job based on their details.
64
  """
65
 
66
  try:
 
10
  # Configure the Google Generative AI API with your API key
11
  genai.configure(api_key=GOOGLE_API_KEY)
12
 
13
+ # Create two columns
14
+ col1, col2 = st.columns(2)
15
+
16
+ # Input fields in the first column
17
+ with col1:
18
+ st.subheader("Enter Candidate Details:")
19
+ candidate_name = st.text_input('Candidate Name', '')
20
+ candidate_designation = st.text_input('Candidate Designation', '')
21
+
22
+ # Input fields in the second column
23
+ with col2:
24
+ candidate_details = st.text_input('Candidate Details - Skills, Experience (comma separated):', '')
25
+ job_description = st.text_area('Your Job Description:', '')
26
+
27
 
28
  # Dropdown menu for tone selection
29
  st.subheader("Select the Tone of the Message:")
 
66
  {job_description}
67
 
68
  ### Tasks:
69
+ Create a personalized {message_type.lower()} message for candidate outreach. Ensure the tone is {selected_tone.lower()} and aligns with professional standards.
70
+ Provide a brief summary of why the candidate is a good fit for the job based on their details.
 
71
  """
72
 
73
  try: