Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Felix Marty
commited on
Commit
·
96227a0
1
Parent(s):
f1c3988
style again
Browse files
app.py
CHANGED
|
@@ -55,9 +55,17 @@ def onnx_export(token: str, model_id: str, task: str) -> str:
|
|
| 55 |
except Exception as e:
|
| 56 |
return f"#### Error: {e}"
|
| 57 |
|
| 58 |
-
|
| 59 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
|
|
|
| 61 |
<div
|
| 62 |
style="
|
| 63 |
display: inline-flex;
|
|
@@ -92,7 +100,8 @@ Note: in case the model to convert is larger than 2 GB, it will be saved in a su
|
|
| 92 |
"""
|
| 93 |
|
| 94 |
with gr.Blocks() as demo:
|
| 95 |
-
gr.HTML(
|
|
|
|
| 96 |
gr.Markdown(DESCRIPTION)
|
| 97 |
|
| 98 |
with gr.Column():
|
|
|
|
| 55 |
except Exception as e:
|
| 56 |
return f"#### Error: {e}"
|
| 57 |
|
| 58 |
+
TTILE_IMAGE = """
|
| 59 |
+
<div
|
| 60 |
+
style="
|
| 61 |
+
display: block;
|
| 62 |
+
margin-left: auto;
|
| 63 |
+
margin-right: auto;
|
| 64 |
+
"
|
| 65 |
+
<img src="https://huggingface.co/spaces/optimum/exporters/resolve/main/clean_hf_onnx.png"/>
|
| 66 |
+
"""
|
| 67 |
|
| 68 |
+
TITLE = """
|
| 69 |
<div
|
| 70 |
style="
|
| 71 |
display: inline-flex;
|
|
|
|
| 100 |
"""
|
| 101 |
|
| 102 |
with gr.Blocks() as demo:
|
| 103 |
+
gr.HTML(TTILE_IMAGE)
|
| 104 |
+
gr.HTML(TITLE)
|
| 105 |
gr.Markdown(DESCRIPTION)
|
| 106 |
|
| 107 |
with gr.Column():
|