KrSharangrav commited on
Commit
5b2cd3f
·
1 Parent(s): 95dcc97

change in model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ user_prompt = st.text_input("Ask AI something:")
45
  if st.button("Get AI Response"):
46
  if user_prompt:
47
  try:
48
- model = genai.GenerativeModel("gemini-1.0-pro-latest")
49
  response = model.generate_content(user_prompt)
50
  st.write("### AI Response:")
51
  st.write(response.text)
 
45
  if st.button("Get AI Response"):
46
  if user_prompt:
47
  try:
48
+ model = genai.GenerativeModel("gemini-1.5-pro")
49
  response = model.generate_content(user_prompt)
50
  st.write("### AI Response:")
51
  st.write(response.text)