Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -26,15 +26,6 @@ app = FastAPI(
|
|
26 |
version="1.0.0",
|
27 |
)
|
28 |
|
29 |
-
# Set up CORS
|
30 |
-
app.add_middleware(
|
31 |
-
CORSMiddleware,
|
32 |
-
allow_origins=["*"], # Allows all origins
|
33 |
-
allow_credentials=True,
|
34 |
-
allow_methods=["*"], # Allows all methods
|
35 |
-
allow_headers=["*"], # Allows all headers
|
36 |
-
)
|
37 |
-
|
38 |
# Define supported languages and their corresponding model files
|
39 |
SUPPORTED_LANGUAGES: Dict[str, Dict[str, str]] = {
|
40 |
"hin": {"name": "Hindi", "file": "mms-tts-hin.onnx"},
|
|
|
26 |
version="1.0.0",
|
27 |
)
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
# Define supported languages and their corresponding model files
|
30 |
SUPPORTED_LANGUAGES: Dict[str, Dict[str, str]] = {
|
31 |
"hin": {"name": "Hindi", "file": "mms-tts-hin.onnx"},
|