loubnabnl HF staff commited on
Commit
a0589c4
1 Parent(s): cdd3dc5
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -5,10 +5,11 @@ from huggingface_hub import create_discussion
5
  token = os.environ["CLAIM"]
6
  repo = "Team8/dataset"
7
 
8
- description = """# <p style="text-align: center;"> Opt-Out from image datasets </p>
9
- <span>This is a space to opt-out your images from some datasets. After you check that your image is in the dataset,
10
- fill an explanation for why you want it to be removed. If you want to be notified when the image is removed,
11
- fill your email. Additionally if you want to encrypt your issue opened on the dataset, check the Encrypt box.</span>"""
 
12
 
13
  def open_issue(explanation, email, encrypt):
14
  create_discussion(
@@ -25,9 +26,9 @@ def open_issue(explanation, email, encrypt):
25
  demo = gr.Blocks()
26
  with demo:
27
  with gr.Row():
28
- gr.Markdown(value=description)
29
- with gr.Row():
30
- with gr.Column():
31
  explanation = gr.Textbox(lines=5, label="Please explain in a few lines why you want this image to be removed from the dataset.")
32
  email = gr.Textbox(lines=1, label="Fill your email if you want to be notified when the image is removed.")
33
  encrypt = gr.Checkbox(label="Encrypt my message")
 
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;'>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>"""
13
 
14
  def open_issue(explanation, email, encrypt):
15
  create_discussion(
 
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)
30
+ with colum_2:
31
+ gr.Markdown(value=description)
32
  explanation = gr.Textbox(lines=5, label="Please explain in a few lines why you want this image to be removed from the dataset.")
33
  email = gr.Textbox(lines=1, label="Fill your email if you want to be notified when the image is removed.")
34
  encrypt = gr.Checkbox(label="Encrypt my message")