Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,13 +32,15 @@ def process_results(results, highlight_terms):
|
|
32 |
repo_path = result["repo_path"]
|
33 |
|
34 |
results_html += """\
|
35 |
-
<p style='font-size:16px;
|
36 |
-
<p style='font-size:16px;
|
37 |
-
<p style='font-size:16px;
|
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
|
42 |
|
43 |
|
44 |
def scisearch(query, language, num_results=10):
|
|
|
32 |
repo_path = result["repo_path"]
|
33 |
|
34 |
results_html += """\
|
35 |
+
<p style='font-size:16px; text-align: left; color: white;'>Repository name: <span style='color: #727cd6;'>{}</span></p>
|
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: scroll; color: #d9d9d9'><code>{}</code></pre>
|
40 |
+
<br>
|
41 |
+
<hr>
|
42 |
""".format(repo_name, repo_path, licenses, text_html)
|
43 |
+
return results_html
|
44 |
|
45 |
|
46 |
def scisearch(query, language, num_results=10):
|