Spaces:
Sleeping
Sleeping
File size: 1,340 Bytes
27c2589 0463385 27c2589 0463385 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
---
title: Cifar10 Classification
emoji: 🤗
colorFrom: red
colorTo: pink
sdk: streamlit
sdk_version: 1.33.0
app_file: app.py
pinned: false
license: apache-2.0
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
### To access the app, follow these steps:
Step 1: Access the app directly on the link (This does not use the FastAPI endpoints):
[https://huggingface.co/spaces/TrishanuDas/cifar10_classification](https://huggingface.co/spaces/TrishanuDas/cifar10_classification)
Step 2: Use the Streamlit app via the FastAPI endpoint.
- Run the FastAPI server on any instance using the following command:
```
uvicorn api_endpoint:app --reload --host <host_name>
```
- Change the HOST variable on the `app_with_fastapi.py` file.
- Execute the app_with_fastapi.py file using the following command:
```
streamlit run app_with_fastapi.py
```
### Files
The following files are present in this repository:
- `app.py`: The main Streamlit app file to run directly.
- `requirements.txt`: The list of Python dependencies required by the app.
- `model.py`: Contains the code for loading and using the pre-trained model.
- `app_endpoint.py`: Contains api_endpoint for the prediction.
- `app_with_fastapi.py`: Contains the code for the Streamlit app with FastAPI endpoint.
|