lvwerra HF staff commited on
Commit
f5e91d1
β€’
1 Parent(s): 7f5bdb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -32,14 +32,12 @@ def process_results(results, highlight_terms):
32
  repo_path = result["repo_path"]
33
 
34
  results_html += """\
35
- <p style='font-size:16px; font-family: Arial; text-align: left;'>Repository name: <span style='color: #ff75b3;'>{}</span></p>
36
- <p style='font-size:16px; font-family: Arial; text-align: left;'>Repository path: <span style='color: #ff75b3;'>{}</span></p>
37
- <p style='font-size:16px; font-family: Arial; text-align: left;'>Repository licenses: <span style='color: #ff75b3;'>{}</span></p>
38
  <pre style='height: 600px; overflow: scroll;'><code>{}</code></pre>
39
  <br>
40
- """.format(
41
- meta_html, repo_name, repo_path, licenses, text_html
42
- )
43
  return results_html + "<hr>"
44
 
45
 
@@ -65,9 +63,9 @@ def scisearch(query, language, num_results=10):
65
  return process_results(results, highlight_terms)
66
 
67
 
68
- description = """# <p style="text-align: center;"> πŸ”Ž IceCoder Dataset Search πŸ” </p>
69
- When you use [IceCoder]() to generate code it might produce exact copies of code in the pretraining dataset. In that case the code requires
70
- and with this search tool we aim to provide help to finding out where the code came from."""
71
 
72
 
73
  if __name__ == "__main__":
 
32
  repo_path = result["repo_path"]
33
 
34
  results_html += """\
35
+ <p style='font-size:16px; font-family: Arial; text-align: left; color: white;'>Repository name: <span style='color: #ff75b3;'>{}</span></p>
36
+ <p style='font-size:16px; font-family: Arial; text-align: left; color: white;'>Repository path: <span style='color: #ff75b3;'>{}</span></p>
37
+ <p style='font-size:16px; font-family: Arial; text-align: left; color: white;'>Repository licenses: <span style='color: #ff75b3;'>{}</span></p>
38
  <pre style='height: 600px; overflow: scroll;'><code>{}</code></pre>
39
  <br>
40
+ """.format(repo_name, repo_path, licenses, text_html)
 
 
41
  return results_html + "<hr>"
42
 
43
 
 
63
  return process_results(results, highlight_terms)
64
 
65
 
66
+ description = """# <p style="text-align: center; color: white;"> πŸ”Ž IceCoder Dataset Search πŸ” </p>
67
+ <span style='color: white;'>When you use [IceCoder]() to generate code it might produce exact copies of code in the pretraining dataset. In that case the code requires
68
+ and with this search tool we aim to provide help to finding out where the code came from.</span>"""
69
 
70
 
71
  if __name__ == "__main__":