meg-huggingface commited on
Commit
70890ba
β€’
1 Parent(s): 91591e6

Upgrading gradio

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -350,19 +350,19 @@ categories = [rigorous, consentful, socially_conscious, sustainable, inclusive,
350
 
351
 
352
  def news_card(news):
353
- with gr.Box():
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.Box(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,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
- ### NEW
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 coming elections.
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