Skip to content

Commit 84c1663

Browse files
authored
fix Gradio demo error in "slow" visualization
1 parent baf6315 commit 84c1663

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import imageio
12
import gradio as gr
23
import random
34
import torch
@@ -18,6 +19,9 @@
1819
from transformers import WhisperProcessor, WhisperForConditionalGeneration
1920
import librosa
2021

22+
os.environ['DISPLAY'] = ':0.0'
23+
os.environ['PYOPENGL_PLATFORM'] = 'egl'
24+
2125
# Load model
2226
cfg = parse_args(phase="webui") # parse config file
2327
cfg.FOLDER = 'cache'

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ natsort
2424
pyrender
2525
moviepy
2626
librosa
27+
triangle==20220202

0 commit comments

Comments
 (0)