Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,7 @@ def chat(message, history):
|
|
32 |
markdown = ""
|
33 |
try:
|
34 |
response = chain({"question": f"{message}"}, return_only_outputs=True)
|
|
|
35 |
markdown = generate_markdown(response)
|
36 |
except Exception as e:
|
37 |
print(f"Erorr: {e}")
|
@@ -40,6 +41,7 @@ def chat(message, history):
|
|
40 |
return history, history
|
41 |
|
42 |
def generate_markdown(obj):
|
|
|
43 |
md_string = ""
|
44 |
|
45 |
if 'answer' in obj:
|
|
|
32 |
markdown = ""
|
33 |
try:
|
34 |
response = chain({"question": f"{message}"}, return_only_outputs=True)
|
35 |
+
print('got response')
|
36 |
markdown = generate_markdown(response)
|
37 |
except Exception as e:
|
38 |
print(f"Erorr: {e}")
|
|
|
41 |
return history, history
|
42 |
|
43 |
def generate_markdown(obj):
|
44 |
+
print('generating markdown')
|
45 |
md_string = ""
|
46 |
|
47 |
if 'answer' in obj:
|