xangcastle commited on
Commit
eb3f2cb
·
1 Parent(s): 3355b10
Files changed (2) hide show
  1. README.md +2 -3
  2. app.py +1 -5
README.md CHANGED
@@ -1,14 +1,13 @@
1
  ---
2
- title: Finetune Whisper
3
  emoji: 🌍
4
- colorFrom: pink
5
  colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 3.12.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
- duplicated_from: antonbol/finetune_whisper
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: Transcriptor y Traductor
3
  emoji: 🌍
4
+ colorFrom: green
5
  colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 3.12.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -1,13 +1,9 @@
1
  from transformers import pipeline
2
  import gradio as gr
3
- import numpy as np
4
  import pytube as pt
5
 
6
  model = pipeline(model="openai/whisper-medium") # change to "your-username/the-name-you-picked"
7
- print(
8
- f"Model is {'multilingual' if model.is_multilingual else 'English-only'} "
9
- f"and has {sum(np.prod(p.shape) for p in model.parameters()):,} parameters."
10
- )
11
 
12
  options = dict(language='es', beam_size=5, best_of=5)
13
  transcribe_options = dict(task="transcribe", **options)
 
1
  from transformers import pipeline
2
  import gradio as gr
 
3
  import pytube as pt
4
 
5
  model = pipeline(model="openai/whisper-medium") # change to "your-username/the-name-you-picked"
6
+
 
 
 
7
 
8
  options = dict(language='es', beam_size=5, best_of=5)
9
  transcribe_options = dict(task="transcribe", **options)