This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-3"> | |
<h3>Select files</h3> | |
<input type="file" #fileInput multiple (change)="addToQueue()" /> | |
</div> | |
<div class="col-md-9"> | |
<h3>Upload queue</h3> | |
<table class="table-headed table-striped"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List, Optional | |
from accentdatabase.session import get_session | |
from fastapi import Depends, Query | |
from pydantic import BaseModel, Field | |
from sqlalchemy import func, or_, select | |
from sqlalchemy.ext.asyncio import AsyncSession | |
from models import Model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import secrets | |
from fastapi import Depends, HTTPException | |
from fastapi.security import HTTPBasic, HTTPBasicCredentials | |
from starlette import status | |
from app.config import settings | |
security = HTTPBasic() |