Spaces:
Sleeping
Sleeping
bofenghuang
commited on
Commit
·
79c3205
1
Parent(s):
a7cf274
filter warnings
Browse files- run_demo_multi_models.py +5 -0
run_demo_multi_models.py
CHANGED
@@ -1,10 +1,15 @@
|
|
1 |
import logging
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
import pytube as pt
|
5 |
import torch
|
6 |
from huggingface_hub import model_info
|
7 |
from transformers import pipeline
|
|
|
|
|
|
|
|
|
8 |
|
9 |
DEFAULT_MODEL_NAME = "bhuang/whisper-medium-cv11-french-case-punctuation"
|
10 |
MODEL_NAMES = [
|
|
|
1 |
import logging
|
2 |
+
import warnings
|
3 |
|
4 |
import gradio as gr
|
5 |
import pytube as pt
|
6 |
import torch
|
7 |
from huggingface_hub import model_info
|
8 |
from transformers import pipeline
|
9 |
+
from transformers.utils.logging import disable_progress_bar
|
10 |
+
|
11 |
+
warnings.filterwarnings("ignore")
|
12 |
+
disable_progress_bar()
|
13 |
|
14 |
DEFAULT_MODEL_NAME = "bhuang/whisper-medium-cv11-french-case-punctuation"
|
15 |
MODEL_NAMES = [
|