from fastapi import FastAPI, File, UploadFile, Request from fastapi.responses import HTMLResponse, JSONResponse, StreamingResponse, FileResponse import requests import time import asyncio from typing import Dict import os import mimetypes app = FastAPI() HTML_CONTENT = """