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/test/widget_test.dart from kisambu/tuberculoscan: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/kisambu/tuberculoscan/resolve/main/application2/test/widget_test.dart
- Command line
-
hf download hf://kisambu/tuberculoscan/application2/test/widget_test.dart
-
curl -L -o widget_test.dart https://huggingface.co/kisambu/tuberculoscan/resolve/main/application2/test/widget_test.dart
1.09 kB
| // This is a basic Flutter widget test. | |
| // | |
| // To perform an interaction with a widget in your test, use the WidgetTester | |
| // utility in the flutter_test package. For example, you can send tap and scroll | |
| // gestures. You can also use WidgetTester to find child widgets in the widget | |
| // tree, read text, and verify that the values of widget properties are correct. | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| import 'package:application2/main.dart'; | |
| void main() { | |
| testWidgets('Counter increments smoke test', (WidgetTester tester) async { | |
| // Build our app and trigger a frame. | |
| await tester.pumpWidget(const MyApp()); | |
| // Verify that our counter starts at 0. | |
| expect(find.text('0'), findsOneWidget); | |
| expect(find.text('1'), findsNothing); | |
| // Tap the '+' icon and trigger a frame. | |
| await tester.tap(find.byIcon(Icons.add)); | |
| await tester.pump(); | |
| // Verify that our counter has incremented. | |
| expect(find.text('0'), findsNothing); | |
| expect(find.text('1'), findsOneWidget); | |
| }); | |
| } | |