dwb2023 commited on
Commit
4ac6a1b
1 Parent(s): d03259d

add ssr_mode = False

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -8,13 +8,9 @@ import pandas as pd
8
 
9
  import gradio as gr
10
  import yt_dlp as youtube_dl
11
- from transformers import (
12
- AutoModelForSpeechSeq2Seq,
13
- AutoTokenizer,
14
- AutoFeatureExtractor,
15
- pipeline,
16
- )
17
  from transformers.pipelines.audio_utils import ffmpeg_read
 
18
  import torch
19
  from datasets import load_dataset, Dataset, DatasetDict
20
  import spaces
@@ -225,4 +221,4 @@ with demo:
225
  ["YouTube", "Microphone", "Audio File"]
226
  )
227
 
228
- demo.queue().launch()
 
8
 
9
  import gradio as gr
10
  import yt_dlp as youtube_dl
11
+ from transformers import pipeline
 
 
 
 
 
12
  from transformers.pipelines.audio_utils import ffmpeg_read
13
+
14
  import torch
15
  from datasets import load_dataset, Dataset, DatasetDict
16
  import spaces
 
221
  ["YouTube", "Microphone", "Audio File"]
222
  )
223
 
224
+ demo.queue().launch(ssr_mode=False)