Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ chat=model.start_chat(history=[])
|
|
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(
|
17 |
return response
|
18 |
|
19 |
st.set_page_config(page_title="Q&A Demo")
|
|
|
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([context, question])
|
17 |
return response
|
18 |
|
19 |
st.set_page_config(page_title="Q&A Demo")
|