AFischer1985
commited on
Commit
•
972aa6d
1
Parent(s):
8c750de
Update run.py
Browse files
run.py
CHANGED
@@ -246,7 +246,7 @@ def response(
|
|
246 |
if removeHTML==True: response = re.sub("<(.*?)>","\n", response) # remove HTML-components in general (may cause bugs with markdown-rendering)
|
247 |
yield response
|
248 |
if(True): #len(history)==0):
|
249 |
-
response=response+"\n\n<
|
250 |
yield response
|
251 |
|
252 |
if(onPrem==True):
|
@@ -284,7 +284,7 @@ def response(
|
|
284 |
if removeHTML==True: response = re.sub("<(.*?)>","\n", response) # remove HTML-components in general (may cause bugs with markdown-rendering)
|
285 |
yield response
|
286 |
if(True): #len(history)==0):
|
287 |
-
response=response+"\n\n<
|
288 |
yield response
|
289 |
#history.append((message, response)) # add current dialog to history
|
290 |
|
|
|
246 |
if removeHTML==True: response = re.sub("<(.*?)>","\n", response) # remove HTML-components in general (may cause bugs with markdown-rendering)
|
247 |
yield response
|
248 |
if(True): #len(history)==0):
|
249 |
+
response=response+"\n\n<details open><summary><strong>Sources</strong></summary><br><ul>"+ "".join(["<li>" + s + "</li>" for s in combination])+"</ul></details>"
|
250 |
yield response
|
251 |
|
252 |
if(onPrem==True):
|
|
|
284 |
if removeHTML==True: response = re.sub("<(.*?)>","\n", response) # remove HTML-components in general (may cause bugs with markdown-rendering)
|
285 |
yield response
|
286 |
if(True): #len(history)==0):
|
287 |
+
response=response+"\n\n<details open><summary><strong>Sources</strong></summary><br><ul>"+ "".join(["<li>" + s + "</li>" for s in combination])+"</ul></details>"
|
288 |
yield response
|
289 |
#history.append((message, response)) # add current dialog to history
|
290 |
|