Update README.md
Browse files
README.md
CHANGED
|
@@ -11,4 +11,50 @@ license: mit
|
|
| 11 |
short_description: First-principles calculation of bolt torque
|
| 12 |
---
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 11 |
short_description: First-principles calculation of bolt torque
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# Bolt Torque Calculator
|
| 15 |
+
|
| 16 |
+
**Author:** Sebastian Andreu
|
| 17 |
+
**Course:** 24679 - Designing and Deploying AI/ML Systems
|
| 18 |
+
|
| 19 |
+
This app calculates the torque required to tighten a bolt to a target preload using first-principles engineering formulas.
|
| 20 |
+
The interface allows users to input or select:
|
| 21 |
+
- Bolt diameter [mm]
|
| 22 |
+
- Target preload [N]
|
| 23 |
+
- Thread pitch [mm]
|
| 24 |
+
- Bolt material and lubrication (for estimating thread friction coefficient)
|
| 25 |
+
- Nut/under-head material and lubrication (for estimating friction under the head)
|
| 26 |
+
- Optional head diameter [mm]
|
| 27 |
+
|
| 28 |
+
The model outputs the required torque in **Nm** along with a natural language explanation of the result for non-experts.
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## How to Use
|
| 33 |
+
1. Enter the bolt geometry and preload values.
|
| 34 |
+
2. Select the bolt and nut/head materials and lubrication type.
|
| 35 |
+
3. Optionally specify the head diameter; leave blank to use default (1.5×bolt diameter).
|
| 36 |
+
4. Click **Compute** to see the torque and an easy-to-understand explanation.
|
| 37 |
+
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
## Deployment Details
|
| 41 |
+
- **Frameworks:** [Gradio](https://gradio.app/)
|
| 42 |
+
- **Hosting:** Hugging Face Spaces
|
| 43 |
+
- **Model Loading:** The LLM used for explanations is downloaded from the Hugging Face Hub on startup.
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
## Requirements
|
| 48 |
+
Dependencies are listed in `requirements.txt`.
|
| 49 |
+
Includes: `gradio`, `pandas`, `transformers`
|
| 50 |
+
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
## Acknowledgments
|
| 54 |
+
- Torque calculation formulas based on standard ISO metric bolt theory
|
| 55 |
+
- Deployment scaffold and documentation supported with AI assistance (ChatGPT, OpenAI)
|
| 56 |
+
- Reference: Class-provided notebook *beam_gradio.ipynb*
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|