Paulwalker4884 commited on
Commit
3d64ceb
·
1 Parent(s): a05f62e

Initial commit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ def generate_code(user_input, language):
115
  {"role": "system", "content": f"You are a coding assistant that generates complete and well-explained code in {language}. Always provide clean, working code with comments in Persian when needed."},
116
  {"role": "user", "content": prompt}
117
  ],
118
- max_tokens=1024,
119
  temperature=0.7,
120
  top_p=0.8,
121
  extra_headers={
 
115
  {"role": "system", "content": f"You are a coding assistant that generates complete and well-explained code in {language}. Always provide clean, working code with comments in Persian when needed."},
116
  {"role": "user", "content": prompt}
117
  ],
118
+ max_tokens=2048,
119
  temperature=0.7,
120
  top_p=0.8,
121
  extra_headers={