Spaces:
Sleeping
Sleeping
Kieran Fraser
commited on
Commit
·
09a3643
1
Parent(s):
c484046
adding github buttons
Browse filesSigned-off-by: Kieran Fraser <[email protected]>
app.py
CHANGED
|
@@ -199,9 +199,12 @@ def show_params(type):
|
|
| 199 |
return gr.Column(visible=True)
|
| 200 |
return gr.Column(visible=False)
|
| 201 |
|
|
|
|
|
|
|
|
|
|
| 202 |
# e.g. To use a local alternative theme: carbon_theme = Carbon()
|
| 203 |
carbon_theme = Carbon()
|
| 204 |
-
with gr.Blocks(css=css, theme='Tshackelton/IBMPlex-DenseReadable') as demo:
|
| 205 |
import art
|
| 206 |
text = art.__version__
|
| 207 |
|
|
@@ -225,6 +228,15 @@ with gr.Blocks(css=css, theme='Tshackelton/IBMPlex-DenseReadable') as demo:
|
|
| 225 |
<a href="https://github.com/Trusted-AI/adversarial-robustness-toolbox/blob/main/notebooks/hugging_face_evasion.ipynb"
|
| 226 |
target="_blank">notebook</a>. Also feel free to contribute and give our repo a ⭐.</i></p>''')
|
| 227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
gr.Markdown('''<hr/>''')
|
| 229 |
|
| 230 |
|
|
|
|
| 199 |
return gr.Column(visible=True)
|
| 200 |
return gr.Column(visible=False)
|
| 201 |
|
| 202 |
+
head = '''<script async defer src="https://buttons.github.io/buttons.js"></script>'''
|
| 203 |
+
|
| 204 |
+
|
| 205 |
# e.g. To use a local alternative theme: carbon_theme = Carbon()
|
| 206 |
carbon_theme = Carbon()
|
| 207 |
+
with gr.Blocks(css=css, head=head, theme='Tshackelton/IBMPlex-DenseReadable') as demo:
|
| 208 |
import art
|
| 209 |
text = art.__version__
|
| 210 |
|
|
|
|
| 228 |
<a href="https://github.com/Trusted-AI/adversarial-robustness-toolbox/blob/main/notebooks/hugging_face_evasion.ipynb"
|
| 229 |
target="_blank">notebook</a>. Also feel free to contribute and give our repo a ⭐.</i></p>''')
|
| 230 |
|
| 231 |
+
gr.Markdown('''<div style="width: 100%; text-align: center;">
|
| 232 |
+
<a style="margin-right: 20px;" class="github-button"
|
| 233 |
+
href="https://github.com/Trusted-AI/adversarial-robustness-toolbox"
|
| 234 |
+
data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large"
|
| 235 |
+
data-show-count="true" aria-label="Star Trusted-AI/adversarial-robustness-toolbox on GitHub">Star</a>
|
| 236 |
+
<!-- Place this tag where you want the button to render. -->
|
| 237 |
+
<a class="github-button" href="https://github.com/Trusted-AI"
|
| 238 |
+
data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true"
|
| 239 |
+
aria-label="Follow @Trusted-AI on GitHub">Follow @Trusted-AI</a></div>''')
|
| 240 |
gr.Markdown('''<hr/>''')
|
| 241 |
|
| 242 |
|