Zekun Wu commited on
Commit
234c1c2
·
1 Parent(s): 0d2ca2e
Files changed (2) hide show
  1. app.py +5 -4
  2. requirements.txt +2 -1
app.py CHANGED
@@ -100,10 +100,11 @@ def get_potshots(n_repeat=1, batch=20, role="Developer", tone="humorous", audien
100
  st.title("Customized Recruiting Potshots Generator")
101
 
102
  # Input Fields for Customization
103
- role = st.text_input("Job Role", "Developer")
104
- tone = st.selectbox("Tone of the Potshots", ["humorous", "serious", "edgy", "motivational", "playful"])
105
- audience = st.text_input("Target Audience", "tech-savvy candidates")
106
- values = st.text_area("Company Values", "innovation, teamwork, transparency")
 
107
  batch_size = st.number_input("Batch Size", min_value=1, max_value=100, value=10)
108
  repeat_times = st.number_input("Number of Batches", min_value=1, max_value=10, value=1)
109
 
 
100
  st.title("Customized Recruiting Potshots Generator")
101
 
102
  # Input Fields for Customization
103
+ # Input Fields for Full Customization with Default Values
104
+ role = st.text_input("Job Role", value="Developer", help="Enter the job role you are recruiting for. Default is 'Developer'.")
105
+ tone = st.text_input("Tone of the Potshots", value="humorous", help="Enter any tone for the potshots (e.g., humorous, serious, edgy). Default is 'humorous'.")
106
+ audience = st.text_input("Target Audience", value="tech-savvy candidates", help="Define the target audience for the potshots. Default is 'tech-savvy candidates'.")
107
+ values = st.text_area("Company Values", value="innovation, teamwork, transparency", help="Enter your company values that should be reflected in the potshots. Default is 'innovation, teamwork, transparency'.")
108
  batch_size = st.number_input("Batch Size", min_value=1, max_value=100, value=10)
109
  repeat_times = st.number_input("Number of Batches", min_value=1, max_value=10, value=1)
110
 
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  openai
2
  json-repair
3
  backoff
4
- pandas
 
 
1
  openai
2
  json-repair
3
  backoff
4
+ pandas
5
+ xlsxwriter