Spaces:
Sleeping
Sleeping
File size: 798 Bytes
d6bab68 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# Imports
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cross_val_predict
from sklearn.metrics import accuracy_score
import joblib
import os
import pandas as pd
import numpy as np
import random
import tensorflow as tf
import torch
from tqdm import tqdm
import tensorflow_io as tfio
from pathlib import Path
from IPython import display
from speechbrain.pretrained import EncoderClassifier
import torchaudio
import joblib
# Defining the transcription function
def snoring(audio):
return text
# Defining the audio filepaths
audio = gr.inputs.Audio(type="filepath")
# Loading the gradio framwork
iface = gr.Interface(fn=snoring,inputs=audio, outputs="text", title="Snore.AI", description="Detect Snotring with artificial intelligence.")
iface.launch() |