🚩 Report: Not working

#1
by ayymen - opened
Tamazight NLP org

The space won't start. It works fine on my machine.

ayymen changed discussion status to closed
Tamazight NLP org

Azul Dada, Your API at https://tamazight-nlp-tts.hf.space/ isn't working, I can't fetch the API info to use it in Python! Can you help me with that ?

image.png

Tamazight NLP org

@ysnait Azul!
Try this (worked on my machine):

from gradio_client import Client

client = Client("Tamazight-NLP/TTS")

result = client.predict(
        text="ⴰⵢⵜⵎⴰ ⴷ ⵉⵙⵙⵜⵎⴰ, ⴰⵣⵓⵍ.",
        variant="shi",
        speaker="yan",
        split_sentences=False,
        speaker_wav=None,
        voice_cv_model=None,
        api_name="/predict"
)

print(result)

Sign up or log in to comment