Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Felix Marty
commited on
Commit
Β·
03f6f0b
1
Parent(s):
6629271
fix title?
Browse files
app.py
CHANGED
|
@@ -55,15 +55,19 @@ def onnx_export(token: str, model_id: str, task: str) -> str:
|
|
| 55 |
except Exception as e:
|
| 56 |
return f"#### Error: {e}"
|
| 57 |
|
| 58 |
-
DESCRIPTION = """
|
| 59 |
-
<p align="center">
|
| 60 |
-
<img src="https://huggingface.co/spaces/optimum/exporters/resolve/main/clean_hf_onnx.png"/>
|
| 61 |
-
</p>
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
|
|
|
| 67 |
This Space allows to automatically convert to ONNX π€ transformers models hosted on the Hugging Face Hub. It opens a PR on the target model, and it is up to the owner of the original model
|
| 68 |
to merge the PR to allow people to leverage the ONNX standard to share and use the model on a wide range of devices!
|
| 69 |
|
|
@@ -81,6 +85,7 @@ Note: in case the model to convert is larger than 2 GB, it will be saved in a su
|
|
| 81 |
"""
|
| 82 |
|
| 83 |
with gr.Blocks() as demo:
|
|
|
|
| 84 |
gr.Markdown(DESCRIPTION)
|
| 85 |
|
| 86 |
with gr.Column():
|
|
|
|
| 55 |
except Exception as e:
|
| 56 |
return f"#### Error: {e}"
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
TTILE = """
|
| 60 |
+
<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
| 61 |
+
<img src="https://huggingface.co/spaces/optimum/exporters/resolve/main/clean_hf_onnx.png"/>
|
| 62 |
+
<div>
|
| 63 |
+
<h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
|
| 64 |
+
Convert any PyTorch model to ONNX with π€ Optimum exporters ποΈ
|
| 65 |
+
</h1>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
"""
|
| 69 |
|
| 70 |
+
DESCRIPTION = """
|
| 71 |
This Space allows to automatically convert to ONNX π€ transformers models hosted on the Hugging Face Hub. It opens a PR on the target model, and it is up to the owner of the original model
|
| 72 |
to merge the PR to allow people to leverage the ONNX standard to share and use the model on a wide range of devices!
|
| 73 |
|
|
|
|
| 85 |
"""
|
| 86 |
|
| 87 |
with gr.Blocks() as demo:
|
| 88 |
+
gr.HTML(TTILE)
|
| 89 |
gr.Markdown(DESCRIPTION)
|
| 90 |
|
| 91 |
with gr.Column():
|