FastAPI App¶
embed(input_data)
¶
Embed fake images using the trained autoencoder.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_data
|
NumberFakeImages
|
Input data containing the number of fake images to embed. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
dict[str, Any]: A dictionary containing the embeddings of the fake images. |
Source code in src/uv_datascience_project_monorepo_template/app_fastapi_autoencoder.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|
read_root()
¶
Root endpoint that provides information about the API.
Source code in src/uv_datascience_project_monorepo_template/app_fastapi_autoencoder.py
25 26 27 28 29 30 31 32 33 34 35 |
|
train_model()
¶
Train the autoencoder model.
Returns:
Type | Description |
---|---|
dict[str, str]
|
dict[str, str]: A message indicating the training status. |
Source code in src/uv_datascience_project_monorepo_template/app_fastapi_autoencoder.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|