Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -5,10 +5,11 @@ from huggingface_hub import create_discussion
|
|
5 |
token = os.environ["CLAIM"]
|
6 |
repo = "Team8/dataset"
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
fill
|
|
|
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.
|
29 |
-
|
30 |
-
|
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")
|