rosyvs commited on
Commit
565db3d
·
1 Parent(s): 55f82cb

Update Gradio interface to use 'flagging_mode' instead of 'allow_flagging'

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -385,7 +385,7 @@ interface_tm = gr.Interface(fn=convert_xlsx_to_TMxlsx,
385
  title="transcript-->XLSX+TM",
386
  description="Converts XLSX or csv transcript to XLSX+TM transcript with prefilled dropdown for talkmoves",
387
  live=False,
388
- allow_flagging="never",)
389
 
390
  # gr components for xlsx to ELAN
391
  input_x2e = gr.Files(label="Input XLSX or CSV transcript file", type="filepath", file_types=[".xlsx", ".csv"])
@@ -399,7 +399,7 @@ interface_x2e = gr.Interface(fn=convert_xlsx_to_ELANtsv, # TODO: swap out for co
399
  title="XLSX-->ELAN",
400
  description="Converts XLSX transcript to ELAN-compatible tsv file",
401
  live=False,
402
- allow_flagging="never",)
403
 
404
  # gr components for ELAN to CSV
405
  input_e2c = gr.Files(label="Input ELAN-compatible tsv file", type="filepath", file_types=[".tsv",'.txt'])
@@ -411,7 +411,7 @@ interface_e2c = gr.Interface(fn=convert_ELANtsv_to_CSV, # TODO: swap out for cor
411
  title="ELAN-->CSV",
412
  description="Converts ELAN-exported file (.txt or .tsv, tab separated values) to standardized CSV file with rows sorted by segment start time. Optionally merges segments on ellipsis.",
413
  live=False,
414
- allow_flagging="never",)
415
 
416
  # gr components for XLSX to CSV
417
  input_x2c = gr.Files(label="Input XLSX file", type="filepath", file_types=[".xlsx", ".csv"])
@@ -423,7 +423,7 @@ interface_x2c = gr.Interface(fn=convert_xlsx_to_csv, # TODO: swap out for correc
423
  title="XLSX-->CSV",
424
  description="Converts old version XLSX transcript (with a single Timecode column) to standardized CSV file with rows sorted by segment start time. Optionally merges segments on ellipsis.",
425
  live=False,
426
- allow_flagging="never",)
427
 
428
  # gr components for annotation XLSX
429
  input_c2a = gr.Files(label="Input CSV file", type="filepath", file_types=[".csv"])
@@ -437,7 +437,7 @@ interface_c2a = gr.Interface(
437
  title="CSV-->XLSX+annotation",
438
  description="Converts CSV file to XLSX file for annotation (added columns for CPS or TM or None)",
439
  live=False,
440
- allow_flagging="never",
441
  # submit_btn="Convert"
442
  )
443
 
@@ -452,7 +452,7 @@ interface_di = gr.Interface(
452
  title="Deidentify",
453
  description="Deidentify speaker labels in a transcript. Compatible with .xlsx, .xls, .csv, .tsv, .txt files with a column containing speaker labels. Will not work if speaker column is missing a header. Speaker names or IDs will be replaced with a deidentified label numbered in order of appearance. Choose whether to deidentify just students or all speakers.",
454
  live=False,
455
- allow_flagging="never",
456
  )
457
 
458
 
 
385
  title="transcript-->XLSX+TM",
386
  description="Converts XLSX or csv transcript to XLSX+TM transcript with prefilled dropdown for talkmoves",
387
  live=False,
388
+ flagging_mode="never",)
389
 
390
  # gr components for xlsx to ELAN
391
  input_x2e = gr.Files(label="Input XLSX or CSV transcript file", type="filepath", file_types=[".xlsx", ".csv"])
 
399
  title="XLSX-->ELAN",
400
  description="Converts XLSX transcript to ELAN-compatible tsv file",
401
  live=False,
402
+ flagging_mode="never",)
403
 
404
  # gr components for ELAN to CSV
405
  input_e2c = gr.Files(label="Input ELAN-compatible tsv file", type="filepath", file_types=[".tsv",'.txt'])
 
411
  title="ELAN-->CSV",
412
  description="Converts ELAN-exported file (.txt or .tsv, tab separated values) to standardized CSV file with rows sorted by segment start time. Optionally merges segments on ellipsis.",
413
  live=False,
414
+ flagging_mode="never",)
415
 
416
  # gr components for XLSX to CSV
417
  input_x2c = gr.Files(label="Input XLSX file", type="filepath", file_types=[".xlsx", ".csv"])
 
423
  title="XLSX-->CSV",
424
  description="Converts old version XLSX transcript (with a single Timecode column) to standardized CSV file with rows sorted by segment start time. Optionally merges segments on ellipsis.",
425
  live=False,
426
+ flagging_mode="never",)
427
 
428
  # gr components for annotation XLSX
429
  input_c2a = gr.Files(label="Input CSV file", type="filepath", file_types=[".csv"])
 
437
  title="CSV-->XLSX+annotation",
438
  description="Converts CSV file to XLSX file for annotation (added columns for CPS or TM or None)",
439
  live=False,
440
+ flagging_mode="never",
441
  # submit_btn="Convert"
442
  )
443
 
 
452
  title="Deidentify",
453
  description="Deidentify speaker labels in a transcript. Compatible with .xlsx, .xls, .csv, .tsv, .txt files with a column containing speaker labels. Will not work if speaker column is missing a header. Speaker names or IDs will be replaced with a deidentified label numbered in order of appearance. Choose whether to deidentify just students or all speakers.",
454
  live=False,
455
+ flagging_mode="never",
456
  )
457
 
458