Spaces:
Running
on
Zero
Running
on
Zero
Lord-Raven
commited on
Commit
·
31fb3f9
1
Parent(s):
b8ec020
Playing with different models.
Browse files
app.py
CHANGED
|
@@ -6,10 +6,12 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
| 6 |
|
| 7 |
classifier = pipeline(task='zero-shot-classification', model='tasksource/deberta-small-long-nli')
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
CORSMiddleware,
|
| 11 |
allow_origins=["https://statosphere-3704059fdd7e.c5v4v4jx6pq5.win"],
|
| 12 |
-
allow_credentials=
|
| 13 |
allow_methods=["*"],
|
| 14 |
allow_headers=["*"],
|
| 15 |
)
|
|
|
|
| 6 |
|
| 7 |
classifier = pipeline(task='zero-shot-classification', model='tasksource/deberta-small-long-nli')
|
| 8 |
|
| 9 |
+
app = FastAPI()
|
| 10 |
+
|
| 11 |
+
app.add_middleware(
|
| 12 |
CORSMiddleware,
|
| 13 |
allow_origins=["https://statosphere-3704059fdd7e.c5v4v4jx6pq5.win"],
|
| 14 |
+
allow_credentials=True,
|
| 15 |
allow_methods=["*"],
|
| 16 |
allow_headers=["*"],
|
| 17 |
)
|