Skip to content

Commit

Permalink
Fix link to table transformer detection microsoft model (#20560)
Browse files Browse the repository at this point in the history
* Fix link to table transformer detection microsoft model

* Fix doc styles
  • Loading branch information
JuanFKurucz committed Dec 5, 2022
1 parent d5af5a0 commit eefae41
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
logger = logging.get_logger(__name__)

TABLE_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP = {
"microsoft/table-transformer-table-detection": (
"https://huggingface.co/microsoft/table-transformer-table-detection/resolve/main/config.json"
"microsoft/table-transformer-detection": (
"https://huggingface.co/microsoft/table-transformer-detection/resolve/main/config.json"
),
}

Expand All @@ -38,8 +38,7 @@ class TableTransformerConfig(PretrainedConfig):
This is the configuration class to store the configuration of a [`TableTransformerModel`]. It is used to
instantiate a Table Transformer model according to the specified arguments, defining the model architecture.
Instantiating a configuration with the defaults will yield a similar configuration to that of the Table Transformer
[microsoft/table-transformer-table-detection](https://huggingface.co/microsoft/table-transformer-table-detection)
architecture.
[microsoft/table-transformer-detection](https://huggingface.co/microsoft/table-transformer-detection) architecture.
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
documentation from [`PretrainedConfig`] for more information.
Expand Down Expand Up @@ -117,10 +116,10 @@ class TableTransformerConfig(PretrainedConfig):
```python
>>> from transformers import TableTransformerModel, TableTransformerConfig
>>> # Initializing a Table Transformer microsoft/table-transformer-table-detection style configuration
>>> # Initializing a Table Transformer microsoft/table-transformer-detection style configuration
>>> configuration = TableTransformerConfig()
>>> # Initializing a model from the microsoft/table-transformer-table-detection style configuration
>>> # Initializing a model from the microsoft/table-transformer-detection style configuration
>>> model = TableTransformerModel(configuration)
>>> # Accessing the model configuration
Expand Down

0 comments on commit eefae41

Please sign in to comment.