Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,8 +79,8 @@ def respond(message, chat_history): # μ±ν
λ΄μ μλ΅μ μ²λ¦¬νλ ν¨
|
|
79 |
|
80 |
bot_message = result['answer']
|
81 |
|
82 |
-
for i, doc in enumerate(result['source_documents']):
|
83 |
-
|
84 |
|
85 |
chat_history.append((message, bot_message)) # μ±ν
κΈ°λ‘μ μ¬μ©μμ λ©μμ§μ λ΄μ μλ΅μ μΆκ°ν©λλ€.
|
86 |
|
|
|
79 |
|
80 |
bot_message = result['answer']
|
81 |
|
82 |
+
# for i, doc in enumerate(result['source_documents']):
|
83 |
+
# bot_message += '[' + str(i+1) + '] ' + doc.metadata['source'] + '(' + str(doc.metadata['page']) + ') '
|
84 |
|
85 |
chat_history.append((message, bot_message)) # μ±ν
κΈ°λ‘μ μ¬μ©μμ λ©μμ§μ λ΄μ μλ΅μ μΆκ°ν©λλ€.
|
86 |
|