Spaces:
Sleeping
Sleeping
Marcos12886
commited on
Commit
•
f72ba5a
1
Parent(s):
d0064d4
problema con ruta
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from interfaz import estilo, my_theme
|
|
8 |
token = os.getenv("HF_TOKEN")
|
9 |
client = InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct", token=token)
|
10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
11 |
-
model_class, id2label_class = predict_params(model_path="A-POR-LOS-8000/distilhubert-finetuned-mixed-data", dataset_path="data/mixed_data", filter_white_noise=True)
|
12 |
-
model_mon, id2label_mon = predict_params(model_path="A-POR-LOS-8000/distilhubert-finetuned-cry-detector", dataset_path="data/baby_cry_detection", filter_white_noise=False)
|
13 |
|
14 |
def call(audiopath, model, dataset_path, filter_white_noise):
|
15 |
model.to(device)
|
|
|
8 |
token = os.getenv("HF_TOKEN")
|
9 |
client = InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct", token=token)
|
10 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
11 |
+
model_class, id2label_class = predict_params(model_path="A-POR-LOS-8000/distilhubert-finetuned-mixed-data", dataset_path="A-POR-LOS-8000/data/mixed_data", filter_white_noise=True)
|
12 |
+
model_mon, id2label_mon = predict_params(model_path="A-POR-LOS-8000/distilhubert-finetuned-cry-detector", dataset_path="A-POR-LOS-8000/data/baby_cry_detection", filter_white_noise=False)
|
13 |
|
14 |
def call(audiopath, model, dataset_path, filter_white_noise):
|
15 |
model.to(device)
|