Spaces:
Running
Running
Commit
·
6ccbed3
1
Parent(s):
da0e064
final touch by me again
Browse files
app.py
CHANGED
|
@@ -61,16 +61,17 @@ def grok_chatbot(user_message):
|
|
| 61 |
"model": "openai/gpt-oss-20b",
|
| 62 |
"messages": [
|
| 63 |
{
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 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.)"
|