Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -6,15 +6,10 @@ from transformers import pipeline
|
|
| 6 |
import database
|
| 7 |
|
| 8 |
app = FastAPI()
|
| 9 |
-
origins = [
|
| 10 |
-
"http://localhost:5173",
|
| 11 |
-
"http://localhost",
|
| 12 |
-
"http://localhost:8080",
|
| 13 |
-
]
|
| 14 |
|
| 15 |
app.add_middleware(
|
| 16 |
CORSMiddleware,
|
| 17 |
-
allow_origins=
|
| 18 |
allow_credentials=True,
|
| 19 |
allow_methods=["*"],
|
| 20 |
allow_headers=["*"],
|
|
|
|
| 6 |
import database
|
| 7 |
|
| 8 |
app = FastAPI()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
app.add_middleware(
|
| 11 |
CORSMiddleware,
|
| 12 |
+
allow_origins=["*"],
|
| 13 |
allow_credentials=True,
|
| 14 |
allow_methods=["*"],
|
| 15 |
allow_headers=["*"],
|