This file contains hidden or 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 io import BytesIO | |
| from typing import Literal, Any | |
| import cloudpickle | |
| import pandas as pd | |
| import prefect | |
| from prefect import flow, task | |
| from prefect.context import TaskRunContext, FlowRunContext | |
| from prefect.filesystems import LocalFileSystem, WritableFileSystem | |
| from prefect.results import get_default_result_storage |
This file contains hidden or 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
| # ---- server.py ---- | |
| import os | |
| from time import sleep | |
| from typing import Literal | |
| from uuid import UUID | |
| import fal | |
| from fal.toolkit.kv import KVStore | |
| from pydantic import BaseModel, Field |