suzall commited on
Commit
6f77d84
·
verified ·
1 Parent(s): e1aacba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -15,11 +15,13 @@ st.set_page_config(page_title="LangChain First Question Answer Project", page_ic
15
  st.header("LangChain Demo")
16
 
17
  #Gets the user input
 
 
 
18
 
19
- input_text = st.text_input("You: ")
20
 
21
-
22
- response = load_answer(input_text)
23
 
24
  submit = st.button('Generate')
25
 
 
15
  st.header("LangChain Demo")
16
 
17
  #Gets the user input
18
+ def get_text():
19
+ input_text = st.text_input("You: ", key="input")
20
+ return input_text
21
 
 
22
 
23
+ user_input=get_text()
24
+ response = load_answer(user_input)
25
 
26
  submit = st.button('Generate')
27