awacke1 commited on
Commit
ff41990
1 Parent(s): 49ef6d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -16,6 +16,17 @@ from firebase_admin import credentials
16
  from firebase_admin import firestore
17
 
18
 
 
 
 
 
 
 
 
 
 
 
 
19
  # firestore singleton is a cached multiuser instance to persist shared crowdsource memory
20
  @st.experimental_singleton
21
  def get_db_firestore():
@@ -28,7 +39,8 @@ def get_db_firestore():
28
  db = get_db_firestore()
29
 
30
  # create ASR ML pipeline
31
- asr = pipeline("automatic-speech-recognition", "facebook/wav2vec2-base-960h")
 
32
 
33
  # create Text Classification pipeline
34
  classifier = pipeline("text-classification")
 
16
  from firebase_admin import firestore
17
 
18
 
19
+ import os
20
+ #os.system("pip install gradio==2.7.5.2")
21
+ import torch
22
+ import zipfile
23
+ import torchaudio
24
+ from glob import glob
25
+ #import gradio as gr
26
+
27
+
28
+
29
+
30
  # firestore singleton is a cached multiuser instance to persist shared crowdsource memory
31
  @st.experimental_singleton
32
  def get_db_firestore():
 
39
  db = get_db_firestore()
40
 
41
  # create ASR ML pipeline
42
+ #asr = pipeline("automatic-speech-recognition", "facebook/wav2vec2-base-960h")
43
+ asr = pipeline("automatic-speech-recognition", "snakers4/silero-models")
44
 
45
  # create Text Classification pipeline
46
  classifier = pipeline("text-classification")