Sharyar commited on
Commit
067ae5e
·
1 Parent(s): daa1f7e

Refine user prompt for improved project description clarity and conciseness

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,8 +29,8 @@ def improve_description(user_input: str) -> str:
29
  payload = {
30
  "model": MODEL_ID,
31
  "messages": [
32
- {"role": "system", "content": "You are a technical writing assistant. Rewrite project descriptions to be clear, professional, and concise while preserving all technical details."},
33
- {"role": "user", "content": f"Rewrite this project description professionally:\n\n{user_text}"}
34
  ],
35
  "max_tokens": 300,
36
  "temperature": 0.3
 
29
  payload = {
30
  "model": MODEL_ID,
31
  "messages": [
32
+ {"role": "system", "content": "You are a technical writing assistant. Rewrite project descriptions to be clear, professional, and concise while preserving all technical details. Limit your output to a maximum of 3 sentences."},
33
+ {"role": "user", "content": f"Rewrite this project description professionally, concisely, and in no more than 3 sentences:\n\n{user_text}"}
34
  ],
35
  "max_tokens": 300,
36
  "temperature": 0.3