mrbeliever commited on
Commit
d9f15d7
·
verified ·
1 Parent(s): 7f59196

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,12 +18,12 @@ def generate_response(prompt, api_key):
18
  payload = {
19
  "model": "microsoft/Phi-3.5-mini-instruct",
20
  "messages": [
21
- {"role": "system", "content": """You are a prompt enhancer your work is to enhance the prompt without changing the essence"""},
22
 
23
  {"role": "user", "content": prompt}
24
  ],
25
  "temperature": 0.9,
26
- "max_tokens": 250,
27
  "top_p": 0.9,
28
  "top_k": 50
29
  }
 
18
  payload = {
19
  "model": "microsoft/Phi-3.5-mini-instruct",
20
  "messages": [
21
+ {"role": "system", "content": """You are a prompt enhancer your work is to enhance the prompt without changing the essence and only provide the enhance prompt and nothing else"""},
22
 
23
  {"role": "user", "content": prompt}
24
  ],
25
  "temperature": 0.9,
26
+ "max_tokens": 200,
27
  "top_p": 0.9,
28
  "top_k": 50
29
  }