Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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__":
|