Spaces:
Runtime error
Runtime error
Add application file
Browse files
main.py
CHANGED
@@ -7,9 +7,9 @@ import os
|
|
7 |
from fastapi import FastAPI, Response
|
8 |
import torch
|
9 |
from fastapi.responses import JSONResponse
|
10 |
-
from
|
11 |
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
12 |
-
from
|
13 |
from io import BytesIO
|
14 |
from pyannote.audio import Pipeline
|
15 |
import soundfile as sf
|
|
|
7 |
from fastapi import FastAPI, Response
|
8 |
import torch
|
9 |
from fastapi.responses import JSONResponse
|
10 |
+
from utils.prompt_making import make_prompt
|
11 |
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
12 |
+
from utils.generation import SAMPLE_RATE, generate_audio, preload_models
|
13 |
from io import BytesIO
|
14 |
from pyannote.audio import Pipeline
|
15 |
import soundfile as sf
|