loubnabnl HF staff commited on
Commit
b386fa8
1 Parent(s): ecc584c

rearrange metadata

Browse files
Files changed (1) hide show
  1. app.py +9 -12
app.py CHANGED
@@ -29,17 +29,14 @@ def process_results(results):
29
  license = result["license"]
30
  language = result["language"]
31
  results_html += """\
32
- <p style='font-size:16px; text-align: left;'>Source: <span style='color: #00134d;'>{}</span></p>
33
- <br>
34
- <p style='font-size:16px;> Language:<span style='color: #00134d;'>Python</span></p>
35
- <br>
36
- <p style='font-size:16px;> License:<span style='color: #00134d;'>MIT</span></p>
37
- <br>
38
- <pre style='height: 600px; overflow-y: scroll; overflow-x: hidden; color: #d9d9d9;border: 1px solid #e6b800; padding: 10px'><code>{}</code></pre>
39
- <br>
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>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<b>Language:</b> \
33
+ <span style='color: #00134d;'>{}</span>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<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():