Update app.py
Browse files
app.py
CHANGED
@@ -15,15 +15,6 @@ app.add_middleware(
|
|
15 |
allow_headers=["*"],
|
16 |
)
|
17 |
|
18 |
-
|
19 |
-
app.add_middleware(
|
20 |
-
CORSMiddleware,
|
21 |
-
allow_origins=["*"],
|
22 |
-
allow_credentials=True,
|
23 |
-
allow_methods=["*"],
|
24 |
-
allow_headers=["*"],
|
25 |
-
)
|
26 |
-
|
27 |
# Define the request model that expects a JSON body with "text"
|
28 |
class MeaningRequest(BaseModel):
|
29 |
text: str
|
|
|
15 |
allow_headers=["*"],
|
16 |
)
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
# Define the request model that expects a JSON body with "text"
|
19 |
class MeaningRequest(BaseModel):
|
20 |
text: str
|