Spaces:
Sleeping
Sleeping
update (rest): restrict allowed origins
Browse files
app/server_clinical_embedding.py
CHANGED
|
@@ -35,7 +35,7 @@ app = FastAPI(
|
|
| 35 |
# Add CORS middleware to allow web page access
|
| 36 |
app.add_middleware(
|
| 37 |
CORSMiddleware,
|
| 38 |
-
allow_origins=["
|
| 39 |
allow_credentials=True,
|
| 40 |
allow_methods=["*"],
|
| 41 |
allow_headers=["*"],
|
|
|
|
| 35 |
# Add CORS middleware to allow web page access
|
| 36 |
app.add_middleware(
|
| 37 |
CORSMiddleware,
|
| 38 |
+
allow_origins=["https://santanche-clinical-embedding.hf.space"],
|
| 39 |
allow_credentials=True,
|
| 40 |
allow_methods=["*"],
|
| 41 |
allow_headers=["*"],
|
app/static/browser/index.html
CHANGED
|
@@ -287,8 +287,8 @@ Diabetes"></textarea>
|
|
| 287 |
<div class="form-group">
|
| 288 |
<label for="file-pooling">Pooling:</label>
|
| 289 |
<select id="file-pooling">
|
| 290 |
-
<option value="mean"
|
| 291 |
-
<option value="cls">CLS</option>
|
| 292 |
<option value="max">Max</option>
|
| 293 |
</select>
|
| 294 |
</div>
|
|
|
|
| 287 |
<div class="form-group">
|
| 288 |
<label for="file-pooling">Pooling:</label>
|
| 289 |
<select id="file-pooling">
|
| 290 |
+
<option value="mean">Mean</option>
|
| 291 |
+
<option value="cls" selected>CLS</option>
|
| 292 |
<option value="max">Max</option>
|
| 293 |
</select>
|
| 294 |
</div>
|