Spaces:
Sleeping
Sleeping
Commit
·
abd8f4e
1
Parent(s):
f2a32d8
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,15 +17,14 @@ if 'API_Key' not in st.session_state:
|
|
| 17 |
|
| 18 |
# Setting page title and header
|
| 19 |
st.set_page_config(page_title="Chat GPT Clone", page_icon=":robot_face:")
|
| 20 |
-
st.markdown("<h1 style='text-align: center;'>I'm ur assistance, how can I help you
|
| 21 |
unsafe_allow_html=True)
|
| 22 |
|
| 23 |
st.sidebar.title("😎")
|
| 24 |
st.session_state['API_Key'] = st.sidebar.text_input("What's your API key?", type="password")
|
| 25 |
summarise_button = st.sidebar.button("Summarise the conversation", key="summarise")
|
| 26 |
if summarise_button:
|
| 27 |
-
summarise_placeholder = st.sidebar.write("Nice chatting with you ❤ \n
|
| 28 |
-
st.session_state['conversation'].memory.buffer)
|
| 29 |
# summarise_placeholder.write("Nice chatting with you ❤ \n\n" + st.session_state['conversation'].memory.buffer
|
| 30 |
|
| 31 |
def getresponse(userInput, api_key):
|
|
|
|
| 17 |
|
| 18 |
# Setting page title and header
|
| 19 |
st.set_page_config(page_title="Chat GPT Clone", page_icon=":robot_face:")
|
| 20 |
+
st.markdown("<h1 style='text-align: center;'>I'm ur assistance, how can I help you </h1>",
|
| 21 |
unsafe_allow_html=True)
|
| 22 |
|
| 23 |
st.sidebar.title("😎")
|
| 24 |
st.session_state['API_Key'] = st.sidebar.text_input("What's your API key?", type="password")
|
| 25 |
summarise_button = st.sidebar.button("Summarise the conversation", key="summarise")
|
| 26 |
if summarise_button:
|
| 27 |
+
summarise_placeholder = st.sidebar.write("Nice chatting with you ❤ \n\n"+st.session_state['conversation'].memory.buffer)
|
|
|
|
| 28 |
# summarise_placeholder.write("Nice chatting with you ❤ \n\n" + st.session_state['conversation'].memory.buffer
|
| 29 |
|
| 30 |
def getresponse(userInput, api_key):
|