Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,12 @@ tokenizer = AutoTokenizer.from_pretrained("facebook/mms-tts-bam")
|
|
| 21 |
sampling_rate = model.config.sampling_rate
|
| 22 |
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
@app.get("/tts/")
|
| 25 |
async def tts(text: str = Query(..., description="Bambara text to synthesize")):
|
| 26 |
inputs = tokenizer(text, return_tensors="pt")
|
|
|
|
| 21 |
sampling_rate = model.config.sampling_rate
|
| 22 |
|
| 23 |
|
| 24 |
+
@app.get("/")
|
| 25 |
+
async def root():
|
| 26 |
+
return {"status": "Bambara TTS is online"}
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
@app.get("/tts/")
|
| 31 |
async def tts(text: str = Query(..., description="Bambara text to synthesize")):
|
| 32 |
inputs = tokenizer(text, return_tensors="pt")
|