Spaces:
Running
Running
meg-huggingface
commited on
Commit
β’
70890ba
1
Parent(s):
91591e6
Upgrading gradio
Browse files
app.py
CHANGED
@@ -350,19 +350,19 @@ categories = [rigorous, consentful, socially_conscious, sustainable, inclusive,
|
|
350 |
|
351 |
|
352 |
def news_card(news):
|
353 |
-
with gr.
|
354 |
with gr.Row(elem_id="news-row"):
|
355 |
gr.Markdown(f"{news.title}")
|
356 |
button = gr.Button(elem_id="article-button", value="Read more π")
|
357 |
-
button.click(fn=None,
|
358 |
|
359 |
|
360 |
def space_card(space):
|
361 |
-
with gr.
|
362 |
with gr.Row(elem_id="news-row"):
|
363 |
gr.Markdown(f"{space.title}")
|
364 |
button = gr.Button(elem_id="article-button", value="View π")
|
365 |
-
button.click(fn=None,
|
366 |
|
367 |
|
368 |
def category_tab(category):
|
@@ -462,8 +462,8 @@ with gr.Blocks(css="#margin-top {margin-top: 15px} #center {text-align: center;}
|
|
462 |
""", elem_id="margin-top")
|
463 |
|
464 |
gr.Markdown("""
|
465 |
-
###
|
466 |
-
Check out our collection on [Provenance, Watermarking, and Deepfake Detection](https://huggingface.co/collections/society-ethics/provenance-watermarking-and-deepfake-detection-65c6792b0831983147bb7578) -- especially important to know about with potential malicious use of generative AI in
|
467 |
|
468 |
### What does ethical AI look like?
|
469 |
|
|
|
350 |
|
351 |
|
352 |
def news_card(news):
|
353 |
+
with gr.Blocks():
|
354 |
with gr.Row(elem_id="news-row"):
|
355 |
gr.Markdown(f"{news.title}")
|
356 |
button = gr.Button(elem_id="article-button", value="Read more π")
|
357 |
+
button.click(fn=None, js=f"() => window.open('{news.link}')")
|
358 |
|
359 |
|
360 |
def space_card(space):
|
361 |
+
with gr.Blocks(elem_id="space-card"):
|
362 |
with gr.Row(elem_id="news-row"):
|
363 |
gr.Markdown(f"{space.title}")
|
364 |
button = gr.Button(elem_id="article-button", value="View π")
|
365 |
+
button.click(fn=None, js=f"() => window.open('https://hf.space/{space.id}')")
|
366 |
|
367 |
|
368 |
def category_tab(category):
|
|
|
462 |
""", elem_id="margin-top")
|
463 |
|
464 |
gr.Markdown("""
|
465 |
+
### Features Collection
|
466 |
+
Check out our collection on [Provenance, Watermarking, and Deepfake Detection](https://huggingface.co/collections/society-ethics/provenance-watermarking-and-deepfake-detection-65c6792b0831983147bb7578) -- especially important to know about with potential malicious use of generative AI in elections.
|
467 |
|
468 |
### What does ethical AI look like?
|
469 |
|