Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import datetime
|
|
6 |
from transformers import pipeline
|
7 |
import gradio as gr
|
8 |
|
|
|
9 |
@st.experimental_singleton
|
10 |
def get_db_firestore():
|
11 |
cred = credentials.Certificate('test.json')
|
@@ -13,7 +14,7 @@ def get_db_firestore():
|
|
13 |
db = firestore.client()
|
14 |
return db
|
15 |
|
16 |
-
|
17 |
db = get_db_firestore()
|
18 |
asr = pipeline("automatic-speech-recognition", "facebook/wav2vec2-base-960h")
|
19 |
|
6 |
from transformers import pipeline
|
7 |
import gradio as gr
|
8 |
|
9 |
+
# load cloud firestore client which establishes a connection to dataset where we persist data
|
10 |
@st.experimental_singleton
|
11 |
def get_db_firestore():
|
12 |
cred = credentials.Certificate('test.json')
|
14 |
db = firestore.client()
|
15 |
return db
|
16 |
|
17 |
+
#start it up
|
18 |
db = get_db_firestore()
|
19 |
asr = pipeline("automatic-speech-recognition", "facebook/wav2vec2-base-960h")
|
20 |
|