Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 += "
|
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"
|