Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,16 @@
|
|
| 3 |
##########################################
|
| 4 |
import streamlit as st # For building the web application interface
|
| 5 |
import soundfile as sf # For saving audio as .wav files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
##########################################
|
| 8 |
# Streamlit application title and input
|
|
|
|
| 3 |
##########################################
|
| 4 |
import streamlit as st # For building the web application interface
|
| 5 |
import soundfile as sf # For saving audio as .wav files
|
| 6 |
+
from transformers import (
|
| 7 |
+
pipeline,
|
| 8 |
+
SpeechT5Processor,
|
| 9 |
+
SpeechT5ForTextToSpeech,
|
| 10 |
+
SpeechT5HifiGan,
|
| 11 |
+
AutoModelForCausalLM,
|
| 12 |
+
AutoTokenizer
|
| 13 |
+
) # For sentiment analysis, text-to-speech, and text generation
|
| 14 |
+
from datasets import load_dataset # For loading datasets (e.g., speaker embeddings)
|
| 15 |
+
|
| 16 |
|
| 17 |
##########################################
|
| 18 |
# Streamlit application title and input
|