gleisonnanet commited on
Commit
f884fe1
·
1 Parent(s): 0a58fb3
Files changed (1) hide show
  1. main.py +2 -11
main.py CHANGED
@@ -4,20 +4,11 @@ from audio import audio_router
4
  from pydantic import BaseSettings, BaseModel
5
  from typing import List, Dict, Optional
6
 
7
- class APISettings(BaseSettings):
8
- max_input_length: int = 10000
9
- config_path = "config/config.yaml"
10
- version: Optional[str] = None
11
-
12
- class Config:
13
- env_file = 'config/.env'
14
- env_prefix = 'api_'
15
-
16
- api_settings = APISettings()
17
 
18
  app = FastAPI(title="Text-to-Speech API",
19
  docs_url="/",
20
- version=api_settings.version if api_settings.version else "dev",
21
  description="An API that provides text-to-speech using neural models. "
22
  "Developed by TartuNLP - the NLP research group of the University of Tartu.",
23
  terms_of_service="https://www.tartunlp.ai/andmekaitsetingimused",
 
4
  from pydantic import BaseSettings, BaseModel
5
  from typing import List, Dict, Optional
6
 
7
+
 
 
 
 
 
 
 
 
 
8
 
9
  app = FastAPI(title="Text-to-Speech API",
10
  docs_url="/",
11
+
12
  description="An API that provides text-to-speech using neural models. "
13
  "Developed by TartuNLP - the NLP research group of the University of Tartu.",
14
  terms_of_service="https://www.tartunlp.ai/andmekaitsetingimused",