Wedyan2023 commited on
Commit
c4574be
·
verified ·
1 Parent(s): 1ea71c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -110,9 +110,11 @@ if task_choice == "Data Generation":
110
  if few_shot_examples:
111
  system_prompt += "Use the following few-shot examples as a reference:\n"
112
  for example in few_shot_examples:
113
- system_prompt += f"Example: {example['content']}, Label: {example['label']}\n"
114
  system_prompt += f"Each example should have between {min_words} and {max_words} words.\n"
115
  system_prompt += "Think step by step while generating the examples."
 
 
116
 
117
  st.write("System Prompt:")
118
  st.code(system_prompt)
 
110
  if few_shot_examples:
111
  system_prompt += "Use the following few-shot examples as a reference:\n"
112
  for example in few_shot_examples:
113
+ system_prompt += f"Example: {example['content']}, Sentiment: {example['label']}\n"
114
  system_prompt += f"Each example should have between {min_words} and {max_words} words.\n"
115
  system_prompt += "Think step by step while generating the examples."
116
+ ####
117
+ system_prompt += f"Generate {example['num_to_generate']}"
118
 
119
  st.write("System Prompt:")
120
  st.code(system_prompt)