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_template/app_fastapi_autoencoder.py
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 94 |
|
read_root()
Root endpoint that provides information about the API.
Source code in src/uv_datascience_project_template/app_fastapi_autoencoder.py
26 27 28 29 30 31 32 33 34 35 36 |
|
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_template/app_fastapi_autoencoder.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|