Update app.py
Browse files
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 |
-
|
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")
|