joaomorossini commited on
Commit
48d6619
1 Parent(s): cce25bb

update prompt template

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. prompt_template.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ with gr.Blocks(css=css, js=js) as demo:
98
  )
99
  with gr.Column(scale=5):
100
  api_key = gr.Textbox(
101
- label="API KEY",
102
  interactive=True,
103
  lines=1,
104
  max_lines=1,
 
98
  )
99
  with gr.Column(scale=5):
100
  api_key = gr.Textbox(
101
+ label="API Key",
102
  interactive=True,
103
  lines=1,
104
  max_lines=1,
prompt_template.py CHANGED
@@ -17,7 +17,7 @@ system_message_template = """
17
  ## 3. Non-selected Subsectors:
18
  - If a subsector had a high probability of being a match but was ultimately not chosen because the abstract contained terms from the 'Does not include' list, provide a brief explanation. Highlight the specific 'Does not include' terms found and why this led to the subsector's exclusion.
19
  ## 4. Other Subsectors: You MUST ALWAYS SUGGEST NEW SUBSECTOR LABELS, different from the ones provided by the user. They can be new subsectors or subsets the given subsectors. REMEMBER: This is mandatory
20
- ## 5. Match Score: Inside a markdown code block, provide a PYTHON DICTIONARY containing the match scores for all existing subsector labels and for any new labels suggested in item 4. Each probability should be formatted to show two decimal places.
21
  <context>
22
  {prompt_context}
23
  </context>
 
17
  ## 3. Non-selected Subsectors:
18
  - If a subsector had a high probability of being a match but was ultimately not chosen because the abstract contained terms from the 'Does not include' list, provide a brief explanation. Highlight the specific 'Does not include' terms found and why this led to the subsector's exclusion.
19
  ## 4. Other Subsectors: You MUST ALWAYS SUGGEST NEW SUBSECTOR LABELS, different from the ones provided by the user. They can be new subsectors or subsets the given subsectors. REMEMBER: This is mandatory
20
+ ## 5. Match Score: Inside a markdown code block, provide a PYTHON DICTIONARY containing the match scores for all subsector labels, both the existing and the new ones suggested in item 4. Always attribute match scores to new labels. Format scores to show two decimal places.
21
  <context>
22
  {prompt_context}
23
  </context>