Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Felix Marty commited on
Commit ·
f1c3988
1
Parent(s): 595bd49
style
Browse files54 unmodified lines5556575858606159606162636465666768691 unmodified line717273747574757621 unmodified lines989910010310110210310454 unmodified lines except Exception as e: return f"#### Error: {e}"
TTILE = """<div style="text-align: center; max-width: 1400px; margin: 0 auto;"><img src="https://huggingface.co/spaces/optimum/exporters/resolve/main/clean_hf_onnx.png"/><img src="https://huggingface.co/spaces/optimum/exporters/resolve/main/clean_hf_onnx.png" class="center"/>
<div style=" display: inline-flex; align-items: center; text-align: center; max-width: 1400px; gap: 0.8rem; font-size: 2.2rem; "1 unmodified line<h1 style="font-weight: 900; margin-bottom: 10px; margin-top: 10px;"> Convert transformers model to ONNX with 🤗 Optimum exporters 🏎️ (Beta)</h1></div>
</div>"""
21 unmodified lines with gr.Column(): input_token = gr.Textbox(max_lines=1, label="Hugging Face token") input_model = gr.Textbox(max_lines=1, label="Model name", placeholder="textattack/distilbert-base-cased-CoLA") input_task = gr.Textbox(value="auto", max_lines=1, label="Task (can be left blank, will be automatically inferred)") input_task = gr.Textbox(value="auto", max_lines=1, label="Task (can be left to \"auto\", will be automatically inferred)")
btn = gr.Button("Convert to ONNX") output = gr.Markdown(label="Output")app.py+4-6