Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
-
|
5 |
css = """
|
6 |
-
|
7 |
p {
|
8 |
font-size: 120%;
|
9 |
}
|
@@ -13,16 +11,18 @@ p {
|
|
13 |
}
|
14 |
|
15 |
video {
|
16 |
-
max-height: 400px;
|
17 |
}
|
|
|
18 |
.image-container {
|
19 |
-
width: 200px;
|
20 |
-
|
|
|
21 |
}
|
22 |
|
23 |
img {
|
24 |
-
width: auto;
|
25 |
-
height: auto;
|
26 |
}
|
27 |
"""
|
28 |
|
@@ -41,8 +41,8 @@ with gr.Blocks(css=css) as demo:
|
|
41 |
gr.Markdown("# Watermarking with Gradio: Example")
|
42 |
gr.Markdown("Watermarks can be **visible** or **invisible**.")
|
43 |
gr.Markdown("""They can provide information directly, or provide a link for more information.
|
44 |
-
Visible watermarks can help to disclose when content is AI-generated, so viewers know it's synthetic.
|
45 |
-
Invisible watermarks can help to mark content as authentic.""")
|
46 |
|
47 |
gr.Markdown()
|
48 |
gr.Markdown("""For more information on watermarking -- what watermarking is, why it's important, and the tools available on Hugging Face --
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
|
|
4 |
css = """
|
|
|
5 |
p {
|
6 |
font-size: 120%;
|
7 |
}
|
|
|
11 |
}
|
12 |
|
13 |
video {
|
14 |
+
max-height: 400px;
|
15 |
}
|
16 |
+
|
17 |
.image-container {
|
18 |
+
width: 200px;
|
19 |
+
max-height: 300px;
|
20 |
+
margin: auto;
|
21 |
}
|
22 |
|
23 |
img {
|
24 |
+
width: auto;
|
25 |
+
height: auto;
|
26 |
}
|
27 |
"""
|
28 |
|
|
|
41 |
gr.Markdown("# Watermarking with Gradio: Example")
|
42 |
gr.Markdown("Watermarks can be **visible** or **invisible**.")
|
43 |
gr.Markdown("""They can provide information directly, or provide a link for more information.
|
44 |
+
- Visible watermarks can help to disclose when content is AI-generated, so viewers know it's synthetic.
|
45 |
+
- Invisible watermarks can help to mark content as authentic.""")
|
46 |
|
47 |
gr.Markdown()
|
48 |
gr.Markdown("""For more information on watermarking -- what watermarking is, why it's important, and the tools available on Hugging Face --
|