cakiki commited on
Commit
756620d
·
1 Parent(s): 9c48c59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,14 +39,14 @@ def process_results(results, query):
39
  language = result["language"]
40
  code_height = min(600, len(text_html.split('\n')) * 20) # limit to maximum height of 600px
41
  results_html += """\
42
- <p style='font-size:16px; text-align: left;'><b>Source: </b><span style='color: #00134d;'>{}</span>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<b>Language:</b> \
43
  <span style='color: #00134d;'>{}</span>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<b>License: </b><span style='color: #00134d;'>{}</span></p>
44
  <br>
45
  <pre style='height: {}px; overflow-y: scroll; overflow-x: hidden; color: #d9d9d9;border: 1px solid #e6b800; padding: 10px'><code>{}</code></pre>
46
  <br>
47
  <hr>
48
  <br>
49
- """.format(repository, language, license, code_height, text_html)
50
  return results_html
51
 
52
 
 
39
  language = result["language"]
40
  code_height = min(600, len(text_html.split('\n')) * 20) # limit to maximum height of 600px
41
  results_html += """\
42
+ <p style='font-size:16px; text-align: left;'><b>Source: </b><a href="https://github.com/{}">{}</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<b>Language:</b> \
43
  <span style='color: #00134d;'>{}</span>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<b>License: </b><span style='color: #00134d;'>{}</span></p>
44
  <br>
45
  <pre style='height: {}px; overflow-y: scroll; overflow-x: hidden; color: #d9d9d9;border: 1px solid #e6b800; padding: 10px'><code>{}</code></pre>
46
  <br>
47
  <hr>
48
  <br>
49
+ """.format(repository, repository language, license, code_height, text_html)
50
  return results_html
51
 
52