Skip to content

Commit f910fe0

Browse files
Merge pull request #129 from seanpedrick-case/dev
Removed reference to model source in summarisation token counts
2 parents 58bd5e8 + 6103474 commit f910fe0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3556,13 +3556,12 @@ def show_tabular_info_box_on_click(
35563556

35573557
do_initial_clean.render()
35583558

3559+
with gr.Accordion(label="Redact Word/data files", open=True):
35593560
tabular_data_redact_btn = gr.Button(
35603561
"Redact text/data files",
35613562
variant="primary",
35623563
elem_id="tabular-redact-btn",
35633564
)
3564-
3565-
with gr.Accordion(label="Redact Word/data files", open=True):
35663565
with gr.Row():
35673566
text_output_summary = gr.Textbox(label="Output result", lines=4)
35683567
text_output_file = gr.File(label="Output files")

tools/llm_funcs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,8 +2112,6 @@ def calculate_tokens_from_metadata(
21122112
model_name_map (dict): A dictionary mapping model name to source
21132113
"""
21142114

2115-
model_name_map[model_choice]["source"]
2116-
21172115
# Regex to find the numbers following the keys in the "Query summary metadata" section
21182116
# This ensures we get the final, aggregated totals for the whole query.
21192117
input_regex = r"input_tokens: (\d+)"

0 commit comments

Comments
 (0)