pvanand commited on
Commit
e82924b
·
verified ·
1 Parent(s): 40a653d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -1
main.py CHANGED
@@ -12,7 +12,6 @@ from fastapi.security import APIKeyHeader
12
  from fastapi.responses import StreamingResponse
13
  from pydantic import BaseModel, Field
14
  from openai import OpenAI
15
- from fastapi.middleware.cors import CORSMiddleware
16
  # ============================================================================
17
  # Configuration and Setup
18
  # ============================================================================
@@ -270,6 +269,8 @@ async def text_to_speech(
270
  # ============================================================================
271
 
272
 
 
 
273
  # CORS middleware setup
274
  app.add_middleware(
275
  CORSMiddleware,
@@ -279,6 +280,10 @@ app.add_middleware(
279
  "https://www.elevatics.cloud",
280
  "https://www.elevatics.online",
281
  "https://www.elevatics.ai",
 
 
 
 
282
  "https://pvanand-specialized-agents.hf.space"
283
  ],
284
  allow_credentials=True,
 
12
  from fastapi.responses import StreamingResponse
13
  from pydantic import BaseModel, Field
14
  from openai import OpenAI
 
15
  # ============================================================================
16
  # Configuration and Setup
17
  # ============================================================================
 
269
  # ============================================================================
270
 
271
 
272
+ from fastapi.middleware.cors import CORSMiddleware
273
+
274
  # CORS middleware setup
275
  app.add_middleware(
276
  CORSMiddleware,
 
280
  "https://www.elevatics.cloud",
281
  "https://www.elevatics.online",
282
  "https://www.elevatics.ai",
283
+ "https://elevaticsai.com",
284
+ "https://elevatics.cloud",
285
+ "https://elevatics.online",
286
+ "https://elevatics.ai",
287
  "https://pvanand-specialized-agents.hf.space"
288
  ],
289
  allow_credentials=True,