Views
No views yet
| Training Loss | Epoch | Step | Validation Loss | Wer |
|---|---|---|---|---|
| 0.4797 | 0.8696 | 10 | 0.4806 | 5.8239 |
| 0.4503 | 1.6957 | 20 | 0.4695 | 5.6818 |
| 0.4076 | 2.5217 | 30 | 0.4219 | 5.5398 |
| 0.3637 | 3.3478 | 40 | 0.3402 | 4.8295 |
| 0.2583 | 4.1739 | 50 | 0.1697 | 4.1193 |
| 0.1121 | 5.0 | 60 | 0.0978 | 3.8352 |
| 0.0751 | 5.8696 | 70 | 0.0825 | 3.8352 |
| 0.0464 | 6.6957 | 80 | 0.0671 | 3.125 |
1from transformers import pipeline
2import gradio as gr
3
4# Load the fine-tuned Whisper model for medical speech recognition
5pipe = pipeline(model="Johnyquest7/whisper-small-finetuned-medical3", return_timestamps=True)
6
7# Define transcription function
8def transcribe(audio):
9 text = pipe(audio)["text"]
10 return text
11
12# Create a Gradio interface
13iface = gr.Interface(
14 fn=transcribe,
15 inputs=gr.Audio(sources=["upload", "microphone"], type="filepath"),
16 outputs="text",
17 title="Whisper Small Medical",
18 description="Demo for medical speech recognition using a fine-tuned Whisper small model."
19)
20
21# Launch the interface
22iface.launch()