Gaoussin commited on
Commit
3c5daa1
·
verified ·
1 Parent(s): 882c6ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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")