Instructions to use Suhani-2407/MobileNet_Fire with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Suhani-2407/MobileNet_Fire with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Suhani-2407/MobileNet_Fire');
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from io import BytesIO
|
|
| 6 |
import base64
|
| 7 |
|
| 8 |
# Load the model when the script is loaded
|
| 9 |
-
model = tf.keras.models.load_model("
|
| 10 |
|
| 11 |
# Your specific class labels
|
| 12 |
class_labels = {
|
|
|
|
| 6 |
import base64
|
| 7 |
|
| 8 |
# Load the model when the script is loaded
|
| 9 |
+
model = tf.keras.models.load_model("MobileNet_model.h5")
|
| 10 |
|
| 11 |
# Your specific class labels
|
| 12 |
class_labels = {
|