Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,12 +13,12 @@ st.title('Chat with Me')
|
|
| 13 |
model = genai.GenerativeModel('gemini-1.5-pro-latest')
|
| 14 |
chat = model.start_chat(history=[])
|
| 15 |
|
| 16 |
-
soru = st.text_input('
|
| 17 |
|
| 18 |
-
if st.button('
|
| 19 |
response = chat.send_message(soru)
|
| 20 |
st.write(response.text)
|
| 21 |
st.write(chat.history)
|
| 22 |
|
| 23 |
-
if st.button('
|
| 24 |
chat = model.start_chat(history=chat.history)
|
|
|
|
| 13 |
model = genai.GenerativeModel('gemini-1.5-pro-latest')
|
| 14 |
chat = model.start_chat(history=[])
|
| 15 |
|
| 16 |
+
soru = st.text_input('You:')
|
| 17 |
|
| 18 |
+
if st.button('Ask'):
|
| 19 |
response = chat.send_message(soru)
|
| 20 |
st.write(response.text)
|
| 21 |
st.write(chat.history)
|
| 22 |
|
| 23 |
+
if st.button('New Chat'):
|
| 24 |
chat = model.start_chat(history=chat.history)
|