Felix Marty commited on
Commit
03f6f0b
β€’
1 Parent(s): 6629271

fix title?

Browse files
Files changed (1) hide show
  1. app.py +12 -7
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
- <p align="center"; style="font-weight: 900; margin-bottom: 10px; margin-top: 10px>
64
- Convert any PyTorch model to ONNX with πŸ€— Optimum exporters 🏎️
65
- </p>
 
 
 
 
 
 
 
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():