nrohan988 commited on
Commit
33c7f43
·
verified ·
1 Parent(s): f37a04c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ chat=model.start_chat(history=[])
12
 
13
  def get_gemini_response(question):
14
  context = "Your name is Ramya and you belong to Karnataka."
15
- response = chat.send_message(context+" "+question, stream=True)
16
- #response = model.generate_content(contents={"text": context})
17
  return response
18
 
19
  st.set_page_config(page_title="Q&A Demo")
 
12
 
13
  def get_gemini_response(question):
14
  context = "Your name is Ramya and you belong to Karnataka."
15
+ #response = chat.send_message(context+" "+question, stream=True)
16
+ response = model.generate_content(contents={"text": context})
17
  return response
18
 
19
  st.set_page_config(page_title="Q&A Demo")