Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -219,7 +219,11 @@ def chat_with_history(user_input, history):
|
|
219 |
query = user_input.strip() + " ํ๊ตญ์ด๋ก ๋ตํด์ฃผ์ธ์."
|
220 |
result = qa_chain({"query": query})
|
221 |
answer = result.get("result", "๋ต๋ณ์ ์ฐพ์ ์ ์์ต๋๋ค.")
|
222 |
-
|
|
|
|
|
|
|
|
|
223 |
return "", history, history
|
224 |
|
225 |
# Gradio ์ธํฐํ์ด์ค ๊ตฌ์ฑ
|
|
|
219 |
query = user_input.strip() + " ํ๊ตญ์ด๋ก ๋ตํด์ฃผ์ธ์."
|
220 |
result = qa_chain({"query": query})
|
221 |
answer = result.get("result", "๋ต๋ณ์ ์ฐพ์ ์ ์์ต๋๋ค.")
|
222 |
+
|
223 |
+
# ๋ฉ์์ง ํฌ๋งท ๋ง์ถ๊ธฐ (๋์
๋๋ฆฌ ํํ)
|
224 |
+
history.append({"role": "user", "content": user_input})
|
225 |
+
history.append({"role": "assistant", "content": answer})
|
226 |
+
|
227 |
return "", history, history
|
228 |
|
229 |
# Gradio ์ธํฐํ์ด์ค ๊ตฌ์ฑ
|