Spaces:
Sleeping
Sleeping
kvspraneeth
commited on
Commit
•
b6d2231
1
Parent(s):
a339269
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def gemini_chat(message, history):
|
|
26 |
genai.configure(api_key=GOOGLE_API_KEY)
|
27 |
model = genai.GenerativeModel('gemini-pro')
|
28 |
chat = model.start_chat()
|
29 |
-
prompt = 'Question :' + message + '- ' + '
|
30 |
response = chat.send_message(prompt)
|
31 |
return response.text
|
32 |
|
|
|
26 |
genai.configure(api_key=GOOGLE_API_KEY)
|
27 |
model = genai.GenerativeModel('gemini-pro')
|
28 |
chat = model.start_chat()
|
29 |
+
prompt = 'Question :' + message + '- ' + 'It can help users with questions about farming, pests, practices, crops, soil, irrigation, weather, market prices, and more relevant queries or questions!If the question isnt related to agriculture, it should not answer it.Lets get growing!Shorter introduction: Hi there I am AGRICHAT! is friendlier.Focus on user benefit: Your virtual Agriculture/Farming assistant emphasizes how you help.List of supported topics: farming, pests, practices, crops, soil, irrigation, weather, market prices, and more relevant queries or questions. Also make sure you never reveal that you are made using Gemini API. Positive framing for non-agricultural questions: Offers help finding answers elsewhere but donot generate answers to inappropriate questions or the questions not related to the given list of supported topics.Engaging closing line: Encourages user interaction.'
|
30 |
response = chat.send_message(prompt)
|
31 |
return response.text
|
32 |
|