lvwerra HF Staff commited on
Commit
be33e6a
·
1 Parent(s): 92c7818

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -37,8 +37,7 @@ def process_results(results, highlight_terms):
37
  <p style='font-size:16px; text-align: left; color: white;'>Repository licenses: <span style='color: #727cd6;'>{}</span></p>
38
  <br>
39
  <hr>
40
- <pre style='height: 600px; overflow: scroll; color: #d9d9d9'><code>{}</code></pre>
41
- <br>
42
  <hr>
43
  <br>
44
  """.format(repo_name, repo_path, licenses, text_html)
@@ -89,9 +88,7 @@ if __name__ == "__main__":
89
  with gr.Row():
90
  submit_btn = gr.Button("Submit")
91
  with gr.Row():
92
- results = gr.HTML(label="Results")
93
- with gr.Row():
94
- gr.Markdown("![](https://huggingface.co/spaces/bigcode/stack-jss-index/resolve/main/bigcode-contact.png)")
95
 
96
  def submit(query, k, lang="en"):
97
  query = query.strip()
 
37
  <p style='font-size:16px; text-align: left; color: white;'>Repository licenses: <span style='color: #727cd6;'>{}</span></p>
38
  <br>
39
  <hr>
40
+ <pre style='height: 600px; overflow-y: scroll; overflow-x: hidden; color: #d9d9d9'><code>{}</code></pre>
 
41
  <hr>
42
  <br>
43
  """.format(repo_name, repo_path, licenses, text_html)
 
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()