Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,13 +2,13 @@ from transformers import pipeline
|
|
2 |
from gradio import Interface
|
3 |
|
4 |
# Create a pipeline for text-to-speech
|
5 |
-
tts = pipeline("text-to-speech", model="facebook/
|
6 |
|
7 |
# Create a pipeline for speech-to-text
|
8 |
stt = pipeline("automatic-speech-recognition", model="openai/whisper-medium")
|
9 |
|
10 |
# Create a pipeline for text generation
|
11 |
-
chat = pipeline("text-generation", model="
|
12 |
|
13 |
def voice_chat(user_voice):
|
14 |
user_text = stt(user_voice)["text"]
|
|
|
2 |
from gradio import Interface
|
3 |
|
4 |
# Create a pipeline for text-to-speech
|
5 |
+
tts = pipeline("text-to-speech", model="facebook/hf-seamless-m4t-medium")
|
6 |
|
7 |
# Create a pipeline for speech-to-text
|
8 |
stt = pipeline("automatic-speech-recognition", model="openai/whisper-medium")
|
9 |
|
10 |
# Create a pipeline for text generation
|
11 |
+
chat = pipeline("text-generation", model="openai-community/gpt2-xl")
|
12 |
|
13 |
def voice_chat(user_voice):
|
14 |
user_text = stt(user_voice)["text"]
|