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