Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ if task_choice == "Data Generation":
|
|
| 101 |
]
|
| 102 |
else:
|
| 103 |
few_shot_examples = []
|
| 104 |
-
|
| 105 |
# Ask the user how many examples they need
|
| 106 |
num_to_generate = st.number_input("How many examples to generate?", min_value=1, max_value=50, value=10)
|
| 107 |
|
|
@@ -110,7 +110,7 @@ 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']}
|
| 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 |
####
|
|
|
|
| 101 |
]
|
| 102 |
else:
|
| 103 |
few_shot_examples = []
|
| 104 |
+
###here!!!
|
| 105 |
# Ask the user how many examples they need
|
| 106 |
num_to_generate = st.number_input("How many examples to generate?", min_value=1, max_value=50, value=10)
|
| 107 |
|
|
|
|
| 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 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 |
####
|