Spaces:
Runtime error
Runtime error
Update app.py
Browse files16 unmodified lines171819202122232425262728293016 unmodified lineswav = model_vits(input_ids=inputs["input_ids"]).waveform#.detach()# display(Audio(wav, rate=model.config.sampling_rate))return model_vits.config.sampling_rate,wav#remove_noise_nr(wav)def greet(id):global GKb=int(id)while True:GK+=1texts=['السلام عليكم']*bout=modelspeech(texts)yield f"namber is {GK}"demo = gr.Interface(fn=greet, inputs="text", outputs="text")demo.launch()16 unmodified lines171819202122232425262728293016 unmodified lineswav = model_vits(input_ids=inputs["input_ids"]).waveform#.detach()# display(Audio(wav, rate=model.config.sampling_rate))return model_vits.config.sampling_rate,wav#remove_noise_nr(wav)def greet(text,id):global GKb=int(id)while True:GK+=1texts=[text]*bout=modelspeech(texts)yield f"namber is {GK}"demo = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")demo.launch()
app.py+3-3