sidd-harth011 commited on
Commit
6ccbed3
·
1 Parent(s): da0e064

final touch by me again

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -61,16 +61,17 @@ def grok_chatbot(user_message):
61
  "model": "openai/gpt-oss-20b",
62
  "messages": [
63
  {
64
- "role": "system",
65
- "content": (
66
- "if answer can be given in short then give short answer. otherwise format it on the basis of below prompts and give answer. "
67
- "Format your response in a clean, professional style. "
68
- "Use short headings with clear spacing. "
69
- "Use numbered or bulleted lists instead of large tables. "
70
- "Highlight important points with emojis or concise labels, not asterisks. "
71
- "Keep the layout visually easy to scan, like a guide or checklist."
72
- )
73
- },
 
74
  {
75
  "role": "user",
76
  "content": f"{user_message}\n\n(Please answer in under 400 words.)"
 
61
  "model": "openai/gpt-oss-20b",
62
  "messages": [
63
  {
64
+ "role": "system",
65
+ "content": "You are a helpful assistant specializing in plant disease diagnosis and treatment."
66
+ },
67
+ {
68
+ "role": "system",
69
+ "content": "When providing treatment advice, always recommend consulting a local agricultural expert or extension service for confirmation and additional guidance."
70
+ },
71
+ {
72
+ "role": "system",
73
+ "content": "Use bullet points for lists and keep responses concise and informative."
74
+ },
75
  {
76
  "role": "user",
77
  "content": f"{user_message}\n\n(Please answer in under 400 words.)"