Spaces:
Sleeping
Sleeping
Commit
Β·
1619049
1
Parent(s):
a5709b4
Adjusted the git log recommendation
Browse files%B is better than the previous example because it prints the subject and title without needing additional notation
app.py
CHANGED
@@ -24,7 +24,6 @@ def do_the_thing(input, labels):
|
|
24 |
for i in range(len(labels)):
|
25 |
classifications_input.update({zsc_results[0]['labels'][i]: zsc_results[0]['scores'][i]})
|
26 |
i+=1
|
27 |
-
#zsc_results_summary = oracle(sequences=summarisation, candidate_labels=labels, multi_label=False)
|
28 |
classifications_summary = {}
|
29 |
for i in range(len(labels)):
|
30 |
classifications_summary.update({zsc_results[1]['labels'][i]: zsc_results[1]['scores'][i]})
|
@@ -32,7 +31,7 @@ def do_the_thing(input, labels):
|
|
32 |
return [summarisation, classifications_input, classifications_summary]
|
33 |
|
34 |
with gr.Blocks() as frontend:
|
35 |
-
gr.Markdown(f"## Git Commit Classifier\n\nThis tool is to take the notes from a commit, summarise and classify the original and the summary.\n\nTo get the git commit notes, clone the repo and the run `git log --all --pretty='format
|
36 |
input_value = gr.TextArea(label="Notes to Summarise")
|
37 |
btn_submit = gr.Button(value="Summarise and Classify")
|
38 |
with gr.Row():
|
|
|
24 |
for i in range(len(labels)):
|
25 |
classifications_input.update({zsc_results[0]['labels'][i]: zsc_results[0]['scores'][i]})
|
26 |
i+=1
|
|
|
27 |
classifications_summary = {}
|
28 |
for i in range(len(labels)):
|
29 |
classifications_summary.update({zsc_results[1]['labels'][i]: zsc_results[1]['scores'][i]})
|
|
|
31 |
return [summarisation, classifications_input, classifications_summary]
|
32 |
|
33 |
with gr.Blocks() as frontend:
|
34 |
+
gr.Markdown(f"## Git Commit Classifier\n\nThis tool is to take the notes from a commit, summarise and classify the original and the summary.\n\nTo get the git commit notes, clone the repo and the run `git --no-pager log --all --pretty='format:%B%nββββ%n'`")
|
35 |
input_value = gr.TextArea(label="Notes to Summarise")
|
36 |
btn_submit = gr.Button(value="Summarise and Classify")
|
37 |
with gr.Row():
|