Instructions to use kisambu/tuberculoscan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use kisambu/tuberculoscan with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://kisambu/tuberculoscan") - Notebooks
- Google Colab
- Kaggle
Download application2/lib/drawer.dart from kisambu/tuberculoscan: direct link, hf CLI and curl.
- Browser
- Download file 1.89 kB
-
https://huggingface.co/kisambu/tuberculoscan/resolve/main/application2/lib/drawer.dart
- Command line
-
hf download hf://kisambu/tuberculoscan/application2/lib/drawer.dart
-
curl -L -o drawer.dart https://huggingface.co/kisambu/tuberculoscan/resolve/main/application2/lib/drawer.dart
1.89 kB
| import 'package:flutter/material.dart'; | |
| Widget buildDrawer(BuildContext context) { | |
| return Drawer( | |
| child: ListView( | |
| padding: EdgeInsets.zero, | |
| children: <Widget>[ | |
| DrawerHeader( | |
| decoration: BoxDecoration( | |
| gradient: LinearGradient( | |
| colors: [Colors.lightGreen, Colors.grey], | |
| begin: Alignment.topLeft, | |
| end: Alignment.bottomRight, | |
| ), | |
| ), | |
| child: Column( | |
| crossAxisAlignment: CrossAxisAlignment.start, | |
| children: [ | |
| const CircleAvatar( | |
| radius: 30, | |
| backgroundColor: Colors.white, | |
| child: Icon(Icons.person, size: 35, color: Colors.grey), | |
| ), | |
| const SizedBox(height: 10), | |
| Text( | |
| 'Parent', | |
| style: TextStyle( | |
| color: Colors.white, | |
| fontSize: 18, | |
| fontWeight: FontWeight.bold, | |
| ), | |
| ), | |
| ], | |
| ), | |
| ), | |
| ListTile( | |
| leading: const Icon(Icons.settings_rounded), | |
| title: const Text('Paramètre'), | |
| onTap: () { | |
| Navigator.pop(context); | |
| //Navigation vers les paramètres | |
| }, | |
| ), | |
| ListTile( | |
| leading: const Icon(Icons.help_outline_rounded), | |
| title: const Text('Aide'), | |
| onTap: () { | |
| Navigator.pop(context); | |
| //Navigation vers l'aide' | |
| }, | |
| ), | |
| const Divider(), | |
| ListTile( | |
| leading: const Icon(Icons.logout_rounded), | |
| title: const Text('Déconnexion'), | |
| onTap: () { | |
| Navigator.pop(context); | |
| //Navigation vers la sortir | |
| }, | |
| ), | |
| ], | |
| ), | |
| ); | |
| } | |