Update README.md
Browse files
README.md
CHANGED
|
@@ -9,33 +9,11 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# Corrosion
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
- crevice_corrosion
|
| 19 |
-
- erosion_corrosion
|
| 20 |
-
- galvanic_corrosion
|
| 21 |
-
- mic_corrosion
|
| 22 |
-
- no_corrosion
|
| 23 |
-
- pitting_corrosion
|
| 24 |
-
- stress_corrosion
|
| 25 |
-
- under_insulation_corrosion
|
| 26 |
-
- uniform_corrosion
|
| 27 |
-
|
| 28 |
-
## File modello
|
| 29 |
-
Assicurati che `resnet50-corrosion-classifier-v1.pth` sia nella root dello Space.
|
| 30 |
-
|
| 31 |
-
## Variabili d'ambiente (Settings → Repository secrets)
|
| 32 |
-
- `OPENAI_API_KEY` = la tua chiave OpenAI
|
| 33 |
-
(modello consigliato: gpt-4o-mini)
|
| 34 |
-
- **Opzionale**: `APP_FORCE_LANG` per forzare la seconda lingua
|
| 35 |
-
(default: auto in base al testo inserito, se vuoto → italiano)
|
| 36 |
-
|
| 37 |
-
## Note UI
|
| 38 |
-
- La grafica del container HF non è modificabile, ma il layout Gradio sì
|
| 39 |
-
(tema e un po' di CSS).
|
| 40 |
-
- Per incorporarlo nel tuo sito, puoi usare un iframe o chiamare l'API del Space.
|
| 41 |
|
|
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Corrosion Assistant — Beta
|
| 13 |
|
| 14 |
+
- **Model**: ResNet50 corrosion classifier trained locally on ~9,000 images
|
| 15 |
+
- **Chat**: OpenAI-powered advisor (first English, then user language or Italian)
|
| 16 |
+
- **Data collection**: public contribution link coming soon
|
| 17 |
+
- **Disclaimer**: research & experimental only. No professional advice, no warranty.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
- Optional: `OPENAI_MODEL` (default `gpt-4o-mini`)
|