loubnabnl HF staff commited on
Commit
16cdbdb
β€’
1 Parent(s): 75a2130
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -2,11 +2,11 @@ import os
2
  import gradio as gr
3
  from huggingface_hub import create_discussion
4
 
5
- token = os.environ["CLAIM"]
6
  repo = "Team8/dataset"
7
 
8
  # <p style="text-align: center; color: black;"> 🎨 <span style='color: #6d071a;'>FindMy</span>Art</p>
9
- description = """# <p style="text-align: center; color: black;"> 🎨 <span style='color: #6d071a;'>RemoveMy</span>Art 🎨</p>
10
  <span>This is a space to opt-out your images from datasets. After you check that your image is in the dataset,
11
  fill an explanation for why you want it to be removed and specify if you want to encrypt the issue that will be opened on the dataset,
12
  by checking the Encrypt box.</span>"""
@@ -23,7 +23,9 @@ def open_issue(explanation, email, encrypt):
23
  link = f"https://huggingface.co/datasets/{repo}/discussions"
24
  return f"Issue opened at {link}"
25
 
26
- demo = gr.Blocks()
 
 
27
  with demo:
28
  with gr.Row():
29
  _, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)
 
2
  import gradio as gr
3
  from huggingface_hub import create_discussion
4
 
5
+ token = "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"#os.environ["CLAIM"]
6
  repo = "Team8/dataset"
7
 
8
  # <p style="text-align: center; color: black;"> 🎨 <span style='color: #6d071a;'>FindMy</span>Art</p>
9
+ description = """# <p style="text-align: center; color: black;"> 🎨 <span style='color: #6d071a;'>FindMy</span>Art</p>
10
  <span>This is a space to opt-out your images from datasets. After you check that your image is in the dataset,
11
  fill an explanation for why you want it to be removed and specify if you want to encrypt the issue that will be opened on the dataset,
12
  by checking the Encrypt box.</span>"""
 
23
  link = f"https://huggingface.co/datasets/{repo}/discussions"
24
  return f"Issue opened at {link}"
25
 
26
+ demo = gr.Blocks(
27
+ css=".gradio-container {background-color: #fcf8ed; color:brown}"
28
+ )
29
  with demo:
30
  with gr.Row():
31
  _, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)