Intro text changes.
Browse files
app.py
CHANGED
|
@@ -271,13 +271,11 @@ def convert(model_id, task,
|
|
| 271 |
return error_str(e, model=model_id, task=task, framework=framework, compute_units=compute_units, precision=precision, tolerance=tolerance)
|
| 272 |
|
| 273 |
DESCRIPTION = """
|
| 274 |
-
## Convert a transformers model to Core ML
|
| 275 |
|
| 276 |
With this Space you can try to convert a transformers model to Core ML. It uses the 🤗 Hugging Face [Exporters repo](https://huggingface.co/exporters) under the hood.
|
| 277 |
|
| 278 |
-
Note that not all models are supported. If you get an error on a model you'd like to convert, please open an issue
|
| 279 |
-
|
| 280 |
-
After conversion, you can choose to submit a PR to the original repo, or create your own repo with just the converted Core ML weights.
|
| 281 |
"""
|
| 282 |
|
| 283 |
with gr.Blocks() as demo:
|
|
@@ -359,7 +357,8 @@ with gr.Blocks() as demo:
|
|
| 359 |
fn=convert,
|
| 360 |
inputs=[input_model, radio_tasks, radio_compute, radio_precision, radio_tolerance, radio_framework, radio_push, text_destination, text_token],
|
| 361 |
outputs=error_output,
|
| 362 |
-
scroll_to_output=True
|
|
|
|
| 363 |
)
|
| 364 |
|
| 365 |
radio_push.change(
|
|
|
|
| 271 |
return error_str(e, model=model_id, task=task, framework=framework, compute_units=compute_units, precision=precision, tolerance=tolerance)
|
| 272 |
|
| 273 |
DESCRIPTION = """
|
| 274 |
+
## Convert a `transformers` model to Core ML
|
| 275 |
|
| 276 |
With this Space you can try to convert a transformers model to Core ML. It uses the 🤗 Hugging Face [Exporters repo](https://huggingface.co/exporters) under the hood.
|
| 277 |
|
| 278 |
+
Note that not all models are supported. If you get an error on a model you'd like to convert, please open an issue in the discussions tab of this Space. You'll get a link to do it when an error occurs.
|
|
|
|
|
|
|
| 279 |
"""
|
| 280 |
|
| 281 |
with gr.Blocks() as demo:
|
|
|
|
| 357 |
fn=convert,
|
| 358 |
inputs=[input_model, radio_tasks, radio_compute, radio_precision, radio_tolerance, radio_framework, radio_push, text_destination, text_token],
|
| 359 |
outputs=error_output,
|
| 360 |
+
scroll_to_output=True,
|
| 361 |
+
# api_name="convert",
|
| 362 |
)
|
| 363 |
|
| 364 |
radio_push.change(
|