Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/Multimedika/Bot_Development
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def create_instance() -> FastAPI:
|
|
| 23 |
def add_middleware(app: FastAPI) -> FastAPI:
|
| 24 |
app.add_middleware(
|
| 25 |
CORSMiddleware,
|
| 26 |
-
allow_origins=["
|
| 27 |
allow_credentials=True,
|
| 28 |
allow_methods=["*"],
|
| 29 |
allow_headers=["*"],
|
|
@@ -48,7 +48,7 @@ def register_routers(app: FastAPI) -> FastAPI:
|
|
| 48 |
app.include_router(health.router)
|
| 49 |
|
| 50 |
return app
|
| 51 |
-
|
| 52 |
|
| 53 |
def init_app() -> FastAPI:
|
| 54 |
app: FastAPI = pipe(
|
|
|
|
| 23 |
def add_middleware(app: FastAPI) -> FastAPI:
|
| 24 |
app.add_middleware(
|
| 25 |
CORSMiddleware,
|
| 26 |
+
allow_origins=["https://chatbook-multimedika.vercel.app/","http://localhost:3000"],
|
| 27 |
allow_credentials=True,
|
| 28 |
allow_methods=["*"],
|
| 29 |
allow_headers=["*"],
|
|
|
|
| 48 |
app.include_router(health.router)
|
| 49 |
|
| 50 |
return app
|
| 51 |
+
""
|
| 52 |
|
| 53 |
def init_app() -> FastAPI:
|
| 54 |
app: FastAPI = pipe(
|