lvwerra HF staff commited on
Commit
e9efa59
β€’
1 Parent(s): 631a47a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -36,8 +36,8 @@ def process_results(results, highlight_terms):
36
  <p style='font-size:16px; text-align: left; color: white;'>Repository path: <span style='color: #727cd6;'>{}</span></p>
37
  <p style='font-size:16px; text-align: left; color: white;'>Repository licenses: <span style='color: #727cd6;'>{}</span></p>
38
  <br>
39
- <hr>
40
- <pre style='height: 600px; overflow-y: scroll; overflow-x: hidden; color: #d9d9d9'><code>{}</code></pre>
41
  <hr>
42
  <br>
43
  """.format(repo_name, repo_path, licenses, text_html)
@@ -66,7 +66,7 @@ def scisearch(query, language, num_results=10):
66
  return process_results(results, highlight_terms)
67
 
68
 
69
- description = """# <p style="text-align: center; color: white;"> πŸ”Ž IceCoder Dataset Search πŸ” </p>
70
  <span style='color: white;'>When you use <a href="todo" style="color: #ff75b3;">IceCoder</a> to generate code it might produce exact copies of code in the pretraining dataset. In that case the code requires
71
  and with this search tool we aim to provide help to finding out where the code came from.</span>"""
72
 
@@ -88,7 +88,7 @@ if __name__ == "__main__":
88
  with gr.Row():
89
  submit_btn = gr.Button("Submit")
90
  with gr.Row():
91
- results = gr.HTML(label="Results", value="<img src=https://huggingface.co/spaces/bigcode/stack-jss-index/resolve/main/bigcode-contact.png alt='Banner'>")
92
 
93
  def submit(query, k, lang="en"):
94
  query = query.strip()
 
36
  <p style='font-size:16px; text-align: left; color: white;'>Repository path: <span style='color: #727cd6;'>{}</span></p>
37
  <p style='font-size:16px; text-align: left; color: white;'>Repository licenses: <span style='color: #727cd6;'>{}</span></p>
38
  <br>
39
+ <pre style='height: 600px; overflow-y: scroll; overflow-x: hidden; color: #d9d9d9';border: 1px solid #ff75b3; padding: 10px><code>{}</code></pre>
40
+ <br>
41
  <hr>
42
  <br>
43
  """.format(repo_name, repo_path, licenses, text_html)
 
66
  return process_results(results, highlight_terms)
67
 
68
 
69
+ description = """# <p style="text-align: center; color: white;"> πŸ”Ž <span style='color: #ff75b3;'>IceCoder:</span> Dataset Search πŸ” </p>
70
  <span style='color: white;'>When you use <a href="todo" style="color: #ff75b3;">IceCoder</a> to generate code it might produce exact copies of code in the pretraining dataset. In that case the code requires
71
  and with this search tool we aim to provide help to finding out where the code came from.</span>"""
72
 
 
88
  with gr.Row():
89
  submit_btn = gr.Button("Submit")
90
  with gr.Row():
91
+ results = gr.HTML(label="Results", value="<img src='https://huggingface.co/spaces/bigcode/stack-jss-index/resolve/main/bigcode-contact.png' alt='Banner'>")
92
 
93
  def submit(query, k, lang="en"):
94
  query = query.strip()