Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -662,35 +662,26 @@ async def followup_agent(query: FollowupQueryModel, background_tasks: Background
|
|
| 662 |
return StreamingResponse(process_response(), media_type="text/event-stream")
|
| 663 |
|
| 664 |
from fastapi.middleware.cors import CORSMiddleware
|
| 665 |
-
|
| 666 |
# CORS middleware setup
|
| 667 |
app.add_middleware(
|
| 668 |
CORSMiddleware,
|
| 669 |
allow_origins=[
|
| 670 |
"http://localhost:3000",
|
| 671 |
-
"https://*.elevaticsai.com",
|
| 672 |
-
"http://*.elevaticsai.com",
|
| 673 |
"https://www.elevaticsai.com",
|
| 674 |
-
"http://www.elevaticsai.com",
|
| 675 |
-
"https://*.elevatics.cloud",
|
| 676 |
-
"http://*.elevatics.cloud",
|
| 677 |
"https://www.elevatics.cloud",
|
| 678 |
-
"http://www.elevatics.cloud",
|
| 679 |
-
"https://*.elevatics.online",
|
| 680 |
-
"http://*.elevatics.online",
|
| 681 |
"https://www.elevatics.online",
|
| 682 |
-
"http://www.elevatics.online",
|
| 683 |
-
"https://*.elevatics.ai",
|
| 684 |
-
"http://*.elevatics.ai",
|
| 685 |
"https://www.elevatics.ai",
|
| 686 |
-
"
|
|
|
|
|
|
|
|
|
|
| 687 |
"https://pvanand-specialized-agents.hf.space"
|
| 688 |
],
|
| 689 |
allow_credentials=True,
|
| 690 |
allow_methods=["GET", "POST"],
|
| 691 |
allow_headers=["*"],
|
| 692 |
)
|
| 693 |
-
|
| 694 |
if __name__ == "__main__":
|
| 695 |
import uvicorn
|
| 696 |
logger.info("Starting the application")
|
|
|
|
| 662 |
return StreamingResponse(process_response(), media_type="text/event-stream")
|
| 663 |
|
| 664 |
from fastapi.middleware.cors import CORSMiddleware
|
| 665 |
+
|
| 666 |
# CORS middleware setup
|
| 667 |
app.add_middleware(
|
| 668 |
CORSMiddleware,
|
| 669 |
allow_origins=[
|
| 670 |
"http://localhost:3000",
|
|
|
|
|
|
|
| 671 |
"https://www.elevaticsai.com",
|
|
|
|
|
|
|
|
|
|
| 672 |
"https://www.elevatics.cloud",
|
|
|
|
|
|
|
|
|
|
| 673 |
"https://www.elevatics.online",
|
|
|
|
|
|
|
|
|
|
| 674 |
"https://www.elevatics.ai",
|
| 675 |
+
"https://elevaticsai.com",
|
| 676 |
+
"https://elevatics.cloud",
|
| 677 |
+
"https://elevatics.online",
|
| 678 |
+
"https://elevatics.ai",
|
| 679 |
"https://pvanand-specialized-agents.hf.space"
|
| 680 |
],
|
| 681 |
allow_credentials=True,
|
| 682 |
allow_methods=["GET", "POST"],
|
| 683 |
allow_headers=["*"],
|
| 684 |
)
|
|
|
|
| 685 |
if __name__ == "__main__":
|
| 686 |
import uvicorn
|
| 687 |
logger.info("Starting the application")
|