Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ chain = RetrievalQAWithSourcesChain.from_chain_type(llm, chain_type="stuff", ret
|
|
29 |
def chat(message, history):
|
30 |
history = history or []
|
31 |
response = ""
|
|
|
32 |
try:
|
33 |
response = chain({"question": f"{message}"}, return_only_outputs=True)
|
34 |
markdown = generate_markdown(response)
|
|
|
29 |
def chat(message, history):
|
30 |
history = history or []
|
31 |
response = ""
|
32 |
+
markdown = ""
|
33 |
try:
|
34 |
response = chain({"question": f"{message}"}, return_only_outputs=True)
|
35 |
markdown = generate_markdown(response)
|