Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from langchain.schema import SystemMessage, HumanMessage, AIMessage
|
|
5 |
|
6 |
# From here down is all the StreamLit UI.
|
7 |
st.set_page_config(page_title="Entz's LLM LangChain-OpenAI", page_icon=":ant:")
|
8 |
-
st.header("Role Play:
|
9 |
|
10 |
# put a presumptions for ai to the streamlit session state
|
11 |
# st.session_state provides a way to store and persist data between reruns,
|
@@ -25,7 +25,7 @@ def load_answer(question):
|
|
25 |
|
26 |
|
27 |
def get_text():
|
28 |
-
input_text = st.text_input("Ask me question please~
|
29 |
return input_text
|
30 |
|
31 |
chat = ChatOpenAI(temperature=0)
|
|
|
5 |
|
6 |
# From here down is all the StreamLit UI.
|
7 |
st.set_page_config(page_title="Entz's LLM LangChain-OpenAI", page_icon=":ant:")
|
8 |
+
st.header("Role Play: AI is a 5-Years Old Cute Girl")
|
9 |
|
10 |
# put a presumptions for ai to the streamlit session state
|
11 |
# st.session_state provides a way to store and persist data between reruns,
|
|
|
25 |
|
26 |
|
27 |
def get_text():
|
28 |
+
input_text = st.text_input("Ask me question please~ ", key= input)
|
29 |
return input_text
|
30 |
|
31 |
chat = ChatOpenAI(temperature=0)
|