Spaces:
Runtime error
Runtime error
nandovallec
commited on
Commit
·
7d0eeb6
1
Parent(s):
18d1425
Secret
Browse files
app.py
CHANGED
@@ -8,9 +8,11 @@ import gradio as gr
|
|
8 |
from transformers import pipeline
|
9 |
import re
|
10 |
import asyncio
|
|
|
|
|
11 |
pipe = pipeline(model="nandovallec/whisper-tiny-bg-l") # change to "your-username/the-name-you-picked"
|
12 |
-
gmaps_api_key = GMAPS_API
|
13 |
-
transl_api_key= TRANS_API
|
14 |
# gmaps.configure(api_key=gmaps_api_key)
|
15 |
# mode = "walking"
|
16 |
|
|
|
8 |
from transformers import pipeline
|
9 |
import re
|
10 |
import asyncio
|
11 |
+
import os
|
12 |
+
os.environ.getattribute("API_TOKEN")
|
13 |
pipe = pipeline(model="nandovallec/whisper-tiny-bg-l") # change to "your-username/the-name-you-picked"
|
14 |
+
gmaps_api_key = os.environ.getattribute("GMAPS_API")
|
15 |
+
transl_api_key= os.environ.getattribute("TRANS_API")
|
16 |
# gmaps.configure(api_key=gmaps_api_key)
|
17 |
# mode = "walking"
|
18 |
|