Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,11 @@ 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 |
<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 |
|
@@ -88,6 +90,8 @@ if __name__ == "__main__":
|
|
88 |
submit_btn = gr.Button("Submit")
|
89 |
with gr.Row():
|
90 |
results = gr.HTML(label="Results")
|
|
|
|
|
91 |
|
92 |
def submit(query, k, lang="en"):
|
93 |
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 |
+
<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)
|
45 |
return results_html
|
46 |
|
|
|
90 |
submit_btn = gr.Button("Submit")
|
91 |
with gr.Row():
|
92 |
results = gr.HTML(label="Results")
|
93 |
+
with gr.Row():
|
94 |
+
gr.Markdown("")
|
95 |
|
96 |
def submit(query, k, lang="en"):
|
97 |
query = query.strip()
|