Instructions to use KennethTM/pix2struct-base-table2html with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KennethTM/pix2struct-base-table2html with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="KennethTM/pix2struct-base-table2html")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("KennethTM/pix2struct-base-table2html") model = AutoModelForMultimodalLM.from_pretrained("KennethTM/pix2struct-base-table2html") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,7 +17,7 @@ pipeline_tag: image-to-text
|
|
| 17 |
|
| 18 |
## Demo app
|
| 19 |
|
| 20 |
-
Try the [demo app]() which contains both table detection and recognition!
|
| 21 |
|
| 22 |
|
| 23 |
## About
|
|
|
|
| 17 |
|
| 18 |
## Demo app
|
| 19 |
|
| 20 |
+
Try the [demo app](https://huggingface.co/spaces/KennethTM/Table2html-table-detection-and-recognition) which contains both table detection and recognition!
|
| 21 |
|
| 22 |
|
| 23 |
## About
|