Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,54 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
1. Install dependencies:
|
| 8 |
-
```bash
|
| 9 |
-
pip install -r requirements.txt
|
| 10 |
-
```
|
| 11 |
-
|
| 12 |
-
2. Run the app:
|
| 13 |
-
```bash
|
| 14 |
-
python angle_detection_app.py
|
| 15 |
-
```
|
| 16 |
-
|
| 17 |
-
3. Open your browser and navigate to the URL shown in the terminal (typically http://127.0.0.1:7860)
|
| 18 |
-
|
| 19 |
-
## Hugging Face Spaces Deployment
|
| 20 |
-
|
| 21 |
-
1. Create a new Space on Hugging Face:
|
| 22 |
-
- Go to https://huggingface.co/spaces
|
| 23 |
-
- Click "New Space"
|
| 24 |
-
- Choose "Gradio" as the SDK
|
| 25 |
-
- Give your space a name
|
| 26 |
-
|
| 27 |
-
2. Push your code to the Space:
|
| 28 |
-
```bash
|
| 29 |
-
git clone https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
|
| 30 |
-
cd YOUR_SPACE_NAME
|
| 31 |
-
# Copy your files here
|
| 32 |
-
git add .
|
| 33 |
-
git commit -m "Initial commit"
|
| 34 |
-
git push
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
## Docker Deployment
|
| 38 |
-
|
| 39 |
-
1. Build the Docker image:
|
| 40 |
-
```bash
|
| 41 |
-
docker build -t angle-detection-app .
|
| 42 |
-
```
|
| 43 |
-
|
| 44 |
-
2. Run the container:
|
| 45 |
-
```bash
|
| 46 |
-
docker run -p 7860:7860 angle-detection-app
|
| 47 |
-
```
|
| 48 |
-
|
| 49 |
-
3. Access the app at http://localhost:7860
|
| 50 |
-
|
| 51 |
-
## Requirements
|
| 52 |
-
|
| 53 |
-
- Python 3.8+
|
| 54 |
-
- See requirements.txt for Python package dependencies
|
|
|
|
| 1 |
+
title: Laser Bend Angle Measurement
|
| 2 |
+
sdk: gradio
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: indigo
|
| 5 |
+
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|