File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff 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" )
Original file line number Diff line number Diff 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+)"
You can’t perform that action at this time.
0 commit comments