shubham5027 commited on
Commit
cab027a
·
verified ·
1 Parent(s): dba3372

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ import google.generativeai as genai
11
  load_dotenv()
12
  genai.configure(api_key=os.getenv('GOOGLE_API_KEY'))
13
 
14
- header_image_path = 'farmi.jpg'
15
  st.image(header_image_path, use_column_width='auto')
16
 
17
 
@@ -20,7 +20,7 @@ def get_gemini_repsonse(input,prompt):
20
  response=model.generate_content([input,prompt])
21
  return response.text
22
 
23
- input_prompt= """You are an farming expert and i want some remedial and preventive information about given plant disease. give me remedial informaion for appropriate environmental condition for that particular provided disease , soil condition and what pesticides and fertilizers to use. give the information in such away that it is easy for a farmer to understand in hindi and english one after other"""
24
 
25
  MODEL = tf.keras.models.load_model('./potato_trained_models/1/')
26
  TOMATO_MODEL = tf.keras.models.load_model('./tomato_trained_models/1')
 
11
  load_dotenv()
12
  genai.configure(api_key=os.getenv('GOOGLE_API_KEY'))
13
 
14
+ header_image_path = 'What.jpg'
15
  st.image(header_image_path, use_column_width='auto')
16
 
17
 
 
20
  response=model.generate_content([input,prompt])
21
  return response.text
22
 
23
+ input_prompt= """You are an farming expert and i want some remedial and preventive information about given plant disease. give me remedial informaion for appropriate environmental condition for that particular provided disease , soil condition and what pesticides and fertilizers to use. give the information in such away that it is easy for a farmer to understand in hindi,marathi and english."""
24
 
25
  MODEL = tf.keras.models.load_model('./potato_trained_models/1/')
26
  TOMATO_MODEL = tf.keras.models.load_model('./tomato_trained_models/1')