asony999 commited on
Commit
d0a718e
·
verified ·
1 Parent(s): 6a5d231

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -88,12 +88,17 @@ def redact_pii(audio_file):
88
  return transcribed_text, anonymized_text.text
89
 
90
  # ✅ Step 5: Gradio UI for Audio Upload & Redaction
 
 
 
 
91
  iface = gr.Interface(
92
  fn=redact_pii,
93
  inputs=gr.Audio(type="filepath"),
94
  outputs=["text", "text"],
95
  title="Financial Call Redaction Demo",
96
- description="Upload a financial call recording, and Presidio will transcribe and anonymize sensitive financial data.",
 
97
  examples=["sample_financial_call.wav"]
98
  )
99
 
 
88
  return transcribed_text, anonymized_text.text
89
 
90
  # ✅ Step 5: Gradio UI for Audio Upload & Redaction
91
+ sample_transcript = """Example script for the demo:
92
+ 'Hello, my name is John Doe. My credit card number is 4111-1111-1111-1111, and I bank with HSBC.
93
+ I’d like to transfer $5,000 to my account ending in 123456.'"""
94
+
95
  iface = gr.Interface(
96
  fn=redact_pii,
97
  inputs=gr.Audio(type="filepath"),
98
  outputs=["text", "text"],
99
  title="Financial Call Redaction Demo",
100
+ description=f"Upload a financial call recording, and Presidio will transcribe and anonymize sensitive financial data.\n\n"
101
+ f"🔊 **Sample Script for Testing:**\n{sample_transcript}",
102
  examples=["sample_financial_call.wav"]
103
  )
104