Wedyan2023 commited on
Commit
21bafe7
·
verified ·
1 Parent(s): 34e7a8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ if task_choice == "Data Generation":
108
  # System prompt generation
109
  system_prompt = f"You are a professional {classification_type.lower()} expert. Your role is to generate data for {domain}.\n\n"
110
  if few_shot_examples:
111
- system_prompt += "\n Use the following few-shot examples as a reference:\n"
112
  for example in few_shot_examples:
113
  system_prompt += f"Example: {example['content']} \n Label: {example['label']}\n"
114
  system_prompt += f"Generate {num_to_generate} examples.\n"
 
108
  # System prompt generation
109
  system_prompt = f"You are a professional {classification_type.lower()} expert. Your role is to generate data for {domain}.\n\n"
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']} \n Label: {example['label']}\n"
114
  system_prompt += f"Generate {num_to_generate} examples.\n"