XDHDD commited on
Commit
4e671e5
1 Parent(s): 8986d05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,10 +8,11 @@ from dataset import MaskGenerator
8
  import onnxruntime, onnx
9
  import matplotlib.pyplot as plt
10
  from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
 
 
11
  from torchmetrics.audio.stoi import ShortTimeObjectiveIntelligibility as STOI
12
  from torchmetrics.audio.pesq import PerceptualEvaluationSpeechQuality as PESQ
13
  import pandas as pd
14
- import numpy as np
15
 
16
  @st.cache
17
  def load_model():
 
8
  import onnxruntime, onnx
9
  import matplotlib.pyplot as plt
10
  from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
11
+ import numpy as np
12
+ numpy.import_array()
13
  from torchmetrics.audio.stoi import ShortTimeObjectiveIntelligibility as STOI
14
  from torchmetrics.audio.pesq import PerceptualEvaluationSpeechQuality as PESQ
15
  import pandas as pd
 
16
 
17
  @st.cache
18
  def load_model():