Spaces:
Running
Running
rearrange metadata
Browse files
app.py
CHANGED
@@ -29,17 +29,14 @@ def process_results(results):
|
|
29 |
license = result["license"]
|
30 |
language = result["language"]
|
31 |
results_html += """\
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
<hr>
|
41 |
-
<br>
|
42 |
-
""".format(repository, text_html)
|
43 |
return results_html
|
44 |
|
45 |
|
@@ -104,7 +101,7 @@ if __name__ == "__main__":
|
|
104 |
with gr.Row():
|
105 |
gr.Markdown(value=description)
|
106 |
with gr.Row():
|
107 |
-
query = gr.Textbox(lines=5, placeholder="Type your query here...", label="Query")
|
108 |
with gr.Row():
|
109 |
k = gr.Slider(1, 100, value=10, step=1, label="Max Results")
|
110 |
with gr.Row():
|
|
|
29 |
license = result["license"]
|
30 |
language = result["language"]
|
31 |
results_html += """\
|
32 |
+
<p style='font-size:16px; text-align: left;'><b>Source: </b><span style='color: #00134d;'>{}</span> | <b>Language:</b> \
|
33 |
+
<span style='color: #00134d;'>{}</span> | <b>License: </b><span style='color: #00134d;'>{}</span></p>
|
34 |
+
<br>
|
35 |
+
<pre style='height: 600px; overflow-y: scroll; overflow-x: hidden; color: #d9d9d9;border: 1px solid #e6b800; padding: 10px'><code>{}</code></pre>
|
36 |
+
<br>
|
37 |
+
<hr>
|
38 |
+
<br>
|
39 |
+
""".format(repository, language, license, text_html)
|
|
|
|
|
|
|
40 |
return results_html
|
41 |
|
42 |
|
|
|
101 |
with gr.Row():
|
102 |
gr.Markdown(value=description)
|
103 |
with gr.Row():
|
104 |
+
query = gr.Textbox(lines=5, placeholder="Type your query here...", label="Query", elem_id="q-input")
|
105 |
with gr.Row():
|
106 |
k = gr.Slider(1, 100, value=10, step=1, label="Max Results")
|
107 |
with gr.Row():
|