azy54 commited on
Commit
b8768ce
·
verified ·
1 Parent(s): b8de141

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def main():
35
  st.session_state.messages.append({"role": "user", "content": prompt})
36
 
37
  # Generate the query for the Gemini model
38
- query = f"You are a prompt engineer chatbot. Your task is to take a raw prompt and generate it in a universal format such as RTF (Role Task Format) or RISE (Role Input Steps Expectations). The generated prompt should be in the {prompt_format} format, an enhanced version of the prompt, and should not contain any answers or hints of answers. When input into another generative model, it should generate the best answer. Here is the user's raw prompt: {prompt}. Generate the prompt in {prompt_format} format."
39
 
40
  # Display user message in chat message container
41
  with st.chat_message("user"):
 
35
  st.session_state.messages.append({"role": "user", "content": prompt})
36
 
37
  # Generate the query for the Gemini model
38
+ query = f"You are a prompt engineering assistant. Your task is to transform a raw prompt into an enhanced format, specifically using either RTF (Role Task Format) or RISE (Role Input Steps Expectations), as specified. The output should follow the {prompt_format} structure, and must not include any answers, hints, or suggestions, choose the role efficiently and critically related to that field. The goal is to prepare a prompt that, when used by a generative model, will produce the most accurate and relevant response. Here is the user's raw prompt: '{prompt}'. Please convert it into the {prompt_format} format."
39
 
40
  # Display user message in chat message container
41
  with st.chat_message("user"):