JaphetHernandez commited on
Commit
ee5951e
·
verified ·
1 Parent(s): 8cee540

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -11
app.py CHANGED
@@ -65,19 +65,15 @@ def main():
65
 
66
  # Definir el prompt con in-context learning
67
  initial_prompt = (
68
- "Here are some examples of job title extraction:\n"
69
- "Example 1:\n"
70
- "List: ['Data Scientist', 'Machine Learning Engineer', 'AI Researcher']\n"
71
- "First job title: 'Data Scientist'\n"
72
- "\n"
73
- "Example 2:\n"
74
- "List: ['Software Developer', 'Backend Engineer', 'Frontend Developer']\n"
75
- "First job title: 'Software Developer'\n"
76
- "\n"
77
- "Now, extract the first job title from the following list:\n"
78
  f"List: {job_titles}\n"
79
- "First job title:"
 
 
 
 
80
  )
 
81
 
82
  st.write("Prompt inicial con In-context Learning:")
83
  st.write(initial_prompt)
 
65
 
66
  # Definir el prompt con in-context learning
67
  initial_prompt = (
68
+ "Step 1: Extract the first job title from the list.\n"
 
 
 
 
 
 
 
 
 
69
  f"List: {job_titles}\n"
70
+ "First job title: \n"
71
+ "\n"
72
+ "Step 2: Calculate the cosine similarity between the extracted job title and the given query.\n"
73
+ f"Query: '{query}'\n"
74
+ "Cosine similarity score: \n"
75
  )
76
+
77
 
78
  st.write("Prompt inicial con In-context Learning:")
79
  st.write(initial_prompt)