redkye2 commited on
Commit
01b30ae
Β·
1 Parent(s): bcb7dd6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -105,7 +105,7 @@ def get_conversation_chain(vectorstore):
105
  # μ‚¬μš©μž μž…λ ₯을 μ²˜λ¦¬ν•˜λŠ” ν•¨μˆ˜μž…λ‹ˆλ‹€.
106
  def handle_userinput(user_question):
107
  # λŒ€ν™” 체인을 μ‚¬μš©ν•˜μ—¬ μ‚¬μš©μž μ§ˆλ¬Έμ— λŒ€ν•œ 응닡을 μƒμ„±ν•©λ‹ˆλ‹€.
108
- response = st.st.chat_input({'question': user_question})
109
  # λŒ€ν™” 기둝을 μ €μž₯ν•©λ‹ˆλ‹€.
110
  st.session_state.chat_history = response['chat_history']
111
 
@@ -168,7 +168,7 @@ def main():
168
  vectorstore = get_vectorstore(text_chunks)
169
 
170
  # create conversation chain
171
- st.st.chat_input = get_conversation_chain(
172
  vectorstore)
173
 
174
 
 
105
  # μ‚¬μš©μž μž…λ ₯을 μ²˜λ¦¬ν•˜λŠ” ν•¨μˆ˜μž…λ‹ˆλ‹€.
106
  def handle_userinput(user_question):
107
  # λŒ€ν™” 체인을 μ‚¬μš©ν•˜μ—¬ μ‚¬μš©μž μ§ˆλ¬Έμ— λŒ€ν•œ 응닡을 μƒμ„±ν•©λ‹ˆλ‹€.
108
+ response = st.chat_input({'question': user_question})
109
  # λŒ€ν™” 기둝을 μ €μž₯ν•©λ‹ˆλ‹€.
110
  st.session_state.chat_history = response['chat_history']
111
 
 
168
  vectorstore = get_vectorstore(text_chunks)
169
 
170
  # create conversation chain
171
+ st.chat_input = get_conversation_chain(
172
  vectorstore)
173
 
174