wasm-speeker-sa / app.py
ASG Models
Update app.py
5fe24a7 verified
raw
history blame
435 Bytes
import os
import numpy as np
import gradio as gr
def reverse_audio(audio):
sr, data = audio
return (sr, np.flipud(data))
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-to-speech", model="asg2024/vits-ar-sa")
def inputText(text):
return text
demo = gr.Interface(
fn=reverse_audio,
inputs=pipe,
outputs="audio"
)
if __name__ == "__main__":
demo.launch()