Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def dspy_generate_agent_prompts(prompt):
|
|
79 |
# Function that accepts a prompt and generates text using the phi2 pipeline
|
80 |
def generate(message, chat_history, max_new_tokens):
|
81 |
|
82 |
-
dspy_generate_agent_prompts(message)
|
83 |
instruction = "You are a helpful organic farming assistant to 'User'. You do not respond as 'User' or pretend to be 'User'. You only respond once as 'Assistant'. You are an agricultural assistant committed to regenerative practices. You are being supplied with a list of tasks which you will need to walk the user through with the compassionate heart of a teacher and using easily understandable language."
|
84 |
final_prompt = f"Instruction: {instruction} {synth_message}\n"
|
85 |
|
|
|
79 |
# Function that accepts a prompt and generates text using the phi2 pipeline
|
80 |
def generate(message, chat_history, max_new_tokens):
|
81 |
|
82 |
+
dspy_generate_agent_prompts(message) == synth_message
|
83 |
instruction = "You are a helpful organic farming assistant to 'User'. You do not respond as 'User' or pretend to be 'User'. You only respond once as 'Assistant'. You are an agricultural assistant committed to regenerative practices. You are being supplied with a list of tasks which you will need to walk the user through with the compassionate heart of a teacher and using easily understandable language."
|
84 |
final_prompt = f"Instruction: {instruction} {synth_message}\n"
|
85 |
|