JBHF commited on
Commit
fc21ab5
1 Parent(s): bf05c81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -76,8 +76,12 @@ model_size = "large-v2"
76
  # model = WhisperModel(model_size, device="cpu", compute_type="float16") # JB, DRAAIT OP COLAB CPU OK ?
77
  # ValueError: Requested float16 compute type, but the target device or backend do not support efficient float16 computation.
78
  #
79
- st.write("Loading the WhisperModel: model = WhisperModel(model_size, device=\"cpu\")")
80
  # model = WhisperModel(model_size, device="cpu") # , compute_type="float16") # JB, DRAAIT OP COLAB CPU OK: JA; HF SPACES STREAMLIT FREE TIER: JB OK !
 
 
 
 
81
  model = WhisperModel(model_size, device="cpu", compute_type="int8") # , compute_type="float16") # JB
82
  # JB: Dit gebruikt mijn HF Token !
83
  # st.write("Ready Loading the WhisperModel: model = WhisperModel(model_size, device=\"cpu\")")
 
76
  # model = WhisperModel(model_size, device="cpu", compute_type="float16") # JB, DRAAIT OP COLAB CPU OK ?
77
  # ValueError: Requested float16 compute type, but the target device or backend do not support efficient float16 computation.
78
  #
79
+ # st.write("Loading the WhisperModel: model = WhisperModel(model_size, device=\"cpu\")")
80
  # model = WhisperModel(model_size, device="cpu") # , compute_type="float16") # JB, DRAAIT OP COLAB CPU OK: JA; HF SPACES STREAMLIT FREE TIER: JB OK !
81
+ # JB: Dit gebruikt mijn HF Token !
82
+ # st.write("Ready Loading the WhisperModel: model = WhisperModel(model_size, device=\"cpu\")")
83
+
84
+ st.write("Loading the WhisperModel: model = WhisperModel(model_size, device=\"cpu\", compute_type=\"int8\")")
85
  model = WhisperModel(model_size, device="cpu", compute_type="int8") # , compute_type="float16") # JB
86
  # JB: Dit gebruikt mijn HF Token !
87
  # st.write("Ready Loading the WhisperModel: model = WhisperModel(model_size, device=\"cpu\")")