Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
<
|
40 |
-
<
|
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()
|