tahirsher commited on
Commit
e1b64e4
ยท
verified ยท
1 Parent(s): 32d1b7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ attack_strength = st.sidebar.slider("Attack Strength", 0.0, 0.9, 0.1)
39
  # ================================
40
  # 4๏ธโƒฃ Streamlit ASR Web App (Fast Decoding & Security Features)
41
  # ================================
42
- st.title("๐ŸŽ™๏ธ Speech-to-Text ASR Model with Security Features ๐ŸŽถ")
43
 
44
  audio_file = st.file_uploader("Upload an audio file", type=["wav", "mp3", "flac"])
45
 
@@ -63,7 +63,7 @@ if audio_file:
63
  predicted_ids = torch.argmax(logits, dim=-1)
64
  transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
65
 
66
- if attack_strength > 0.1:
67
  st.warning("โš ๏ธ Adversarial attack detected! Transcription may be affected.")
68
 
69
  st.success("๐Ÿ“„ Secure Transcription:")
 
39
  # ================================
40
  # 4๏ธโƒฃ Streamlit ASR Web App (Fast Decoding & Security Features)
41
  # ================================
42
+ st.title("๐ŸŽ™๏ธ Speech-to-Text ASR Conformer Model Finetunned on Libri Speech with Security Features ๐ŸŽถ")
43
 
44
  audio_file = st.file_uploader("Upload an audio file", type=["wav", "mp3", "flac"])
45
 
 
63
  predicted_ids = torch.argmax(logits, dim=-1)
64
  transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
65
 
66
+ if attack_strength > 0.2:
67
  st.warning("โš ๏ธ Adversarial attack detected! Transcription may be affected.")
68
 
69
  st.success("๐Ÿ“„ Secure Transcription:")