Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,10 @@ import gradio as gr
|
|
6 |
import whisper
|
7 |
import pathlib
|
8 |
|
|
|
|
|
9 |
#Get the netflix dataset
|
10 |
-
netflix = load_dataset('hugginglearners/netflix-shows',use_auth_token=
|
11 |
|
12 |
#load ASR model
|
13 |
asr_model = whisper.load_model("small")
|
@@ -21,7 +23,7 @@ passages = netflix_df['description'].tolist()
|
|
21 |
model = SentenceTransformer('all-mpnet-base-v2')
|
22 |
|
23 |
#load embeddings
|
24 |
-
flix_ds = load_dataset("nickmuchi/netflix-shows-mpnet-embeddings", use_auth_token=
|
25 |
dataset_embeddings = torch.from_numpy(flix_ds["train"].to_pandas().to_numpy()).to(torch.float)
|
26 |
|
27 |
#load cross-encoder for reranking
|
|
|
6 |
import whisper
|
7 |
import pathlib
|
8 |
|
9 |
+
auth_token = os.environ.get("auth_key")
|
10 |
+
|
11 |
#Get the netflix dataset
|
12 |
+
netflix = load_dataset('hugginglearners/netflix-shows',use_auth_token=auth_token)
|
13 |
|
14 |
#load ASR model
|
15 |
asr_model = whisper.load_model("small")
|
|
|
23 |
model = SentenceTransformer('all-mpnet-base-v2')
|
24 |
|
25 |
#load embeddings
|
26 |
+
flix_ds = load_dataset("nickmuchi/netflix-shows-mpnet-embeddings", use_auth_token=auth_token)
|
27 |
dataset_embeddings = torch.from_numpy(flix_ds["train"].to_pandas().to_numpy()).to(torch.float)
|
28 |
|
29 |
#load cross-encoder for reranking
|