Spaces:
Sleeping
Sleeping
Amy Roberts
commited on
Commit
·
ac33554
1
Parent(s):
17b91ab
Tidy up
Browse files- app.py +1 -0
- utils/find_similar_issues.py +4 -2
app.py
CHANGED
@@ -122,6 +122,7 @@ with gr.Blocks(title="Github Bot") as demo:
|
|
122 |
submit_button.click(run_find_similar_issues, outputs=[issues_html], inputs=[token, n_issues, issue_no, query, issue_types])
|
123 |
|
124 |
with gr.Tab("Find maintainers to ping"):
|
|
|
125 |
with gr.Row():
|
126 |
issue = gr.Textbox(label="Github Issue / PR", placeholder="Issue or PR you want to find maintainers to ping for")
|
127 |
with gr.Row():
|
|
|
122 |
submit_button.click(run_find_similar_issues, outputs=[issues_html], inputs=[token, n_issues, issue_no, query, issue_types])
|
123 |
|
124 |
with gr.Tab("Find maintainers to ping"):
|
125 |
+
gr.Markdown("Find maintainers to ping for a given issue or pull request - DO NOT CURRENTLY HAVE FUNCTIONALITY")
|
126 |
with gr.Row():
|
127 |
issue = gr.Textbox(label="Github Issue / PR", placeholder="Issue or PR you want to find maintainers to ping for")
|
128 |
with gr.Row():
|
utils/find_similar_issues.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import json
|
2 |
import argparse
|
|
|
3 |
import requests
|
4 |
-
from defaults import OWNER, REPO, TOKEN
|
5 |
-
from sentence_transformers import SentenceTransformer
|
6 |
import numpy as np
|
|
|
|
|
|
|
7 |
|
8 |
model_id = "all-mpnet-base-v2"
|
9 |
model = SentenceTransformer(model_id)
|
|
|
1 |
import json
|
2 |
import argparse
|
3 |
+
|
4 |
import requests
|
|
|
|
|
5 |
import numpy as np
|
6 |
+
from sentence_transformers import SentenceTransformer
|
7 |
+
|
8 |
+
from .defaults import OWNER, REPO, TOKEN
|
9 |
|
10 |
model_id = "all-mpnet-base-v2"
|
11 |
model = SentenceTransformer(model_id)
|