Spaces:
Paused
Paused
Commit
·
0227654
1
Parent(s):
b41e7b1
Update greg_funcs.py
Browse fileschange hyperlink color
- greg_funcs.py +1 -1
greg_funcs.py
CHANGED
@@ -191,7 +191,7 @@ def get_cot(r):
|
|
191 |
if type(obs) is dict:
|
192 |
if obs.get('input_documents') is not None:
|
193 |
for d in obs['input_documents']:
|
194 |
-
cot += ' '+'<i>- '+str(d.page_content)+'</i>'+' <a href="'+ str(d.metadata['url']) +'">'+str(d.metadata['page'])+'</a> '+'<br>'
|
195 |
cot += '<b>Observation:</b> '+str(obs['output_text']) +'<br><br>'
|
196 |
elif obs.get('intermediate_steps') is not None:
|
197 |
cot += '<b>Query:</b> '+str(obs.get('intermediate_steps')) +'<br><br>'
|
|
|
191 |
if type(obs) is dict:
|
192 |
if obs.get('input_documents') is not None:
|
193 |
for d in obs['input_documents']:
|
194 |
+
cot += ' '+'<i>- '+str(d.page_content)+'</i>'+' <a href="'+ str(d.metadata['url']) +'">'+'''<span style="color: blue;">'''+str(d.metadata['page'])+'</span></a> '+'<br>'
|
195 |
cot += '<b>Observation:</b> '+str(obs['output_text']) +'<br><br>'
|
196 |
elif obs.get('intermediate_steps') is not None:
|
197 |
cot += '<b>Query:</b> '+str(obs.get('intermediate_steps')) +'<br><br>'
|