Spaces:
Runtime error
Runtime error
Update app.py
Browse files16 unmodified lines171819202021222324252526272829293016 unmodified lines wav = 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):def greet(text,id): global GK b=int(id) while True: GK+=1 texts=['السلام عليكم']*b texts=[text]*b out=modelspeech(texts) yield f"namber is {GK}"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")demo = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")demo.launch()app.py+3-3