sora2 / app.py
NoVideo's picture
Update app.py
abb1e77 verified
Raw History Blame Contribute Delete
4.9 kB
import gradio as gr
# This CSS will hide the default Gradio footer.
# It also adds a simple style for the testimonial block.
css = """
footer {display: none !important;}
.testimonial {
background-color: #f9f9f9;
border-left: 5px solid #eee;
padding: 15px 20px;
margin: 25px auto;
max-width: 750px;
font-style: italic;
text-align: left;
}
/* This makes the H1 link look like a normal title */
h1 a {
text-decoration: none;
color: inherit;
}
h1 a:hover {
text-decoration: underline;
}
"""
# This HTML will be injected into the <head> of the page for SEO
head_html = """
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Remove the Sora 2 watermark in seconds. Our AI tool cleanly removes the Sora 2 logo and @username from videos for a professional, clean look.">
<meta name="keywords" content="sora 2 watermark remover, remove sora 2 watermark, sora 2, ai video, sora 2 watermark, ai inpainting, clean sora 2 video, novideowatermark">
<meta property="og:type" content="website">
<meta property="og:title" content="Sora 2 Watermark Remover - NoVideoWatermark.com">
<meta property="og:description" content="Get clean, professional videos. This AI tool removes the new Sora 2 watermark (with @username) for creators on TikTok and YouTube.">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="Sora 2 Watermark Remover - NoVideoWatermark.com">
<meta property="twitter:description" content="Get clean, professional videos. This AI tool removes the new Sora 2 watermark (with @username) for creators on TikTok and YouTube.">
"""
# Content for the landing page in HTML format
landing_page_content = """
<div style="text-align: center; max-width: 800px; margin: auto;">
<h1>
<a href="https://novideowatermark.com/" target="_blank">
🐨 Sora 2 Watermark Remover
</a>
</h1>
<h2 style="font-weight: 500; font-size: 1.5rem; margin-top: 10px;">
AI-Powered Inpainting for Clean, Professional Videos
</h2>
<p style="font-size: 1.1rem; margin-top: 20px;">
Our AI inpainting model cleanly and intelligently removes the dynamic Sora 2 watermark.
It supports both the original logo and the new <strong>@username watermark</strong>.
</p>
<div style="margin-top: 30px;"></div>
<div style="text-align: left; max-width: 500px; margin: auto;">
<h3 style="text-align: center; font-weight: 600;">Get Production-Ready Videos</h3>
<ul style="list-style-type: '✅'; padding-left: 20px;">
<li style="padding-left: 10px; margin-bottom: 10px;">
<strong>Professional Look:</strong> Use creations in presentations or portfolios without a distracting logo.
</li>
<li style="padding-left: 10px; margin-bottom: 10px;">
<strong>Boost Social Media:</strong> Get better engagement on TikTok, Instagram Reels, and YouTube Shorts.
</li>
<li style="padding-left: 10px; margin-bottom: 10px;">
<strong>Maintain Immersion:</strong> Keep the artistic focus on your story, not the tool that made it.
</li>
</ul>
</div>
<div style="margin-top: 30px;"></div>
<h3 style="font-weight: 500;">A Cost-Effective Tool for Creators</h3>
<div class="testimonial">
<p>"This tool is much cheaper than paying for premium generations every time. To get one good 5-10s video, I make dozens of takes—that would cost me hundreds or thousands otherwise."</p>
<p>"It lets me use the free Sora 2 generations (30/day) and just remove the watermark. Some of my TikTok videos using this method have over <strong>500k-1M+ views</strong>, so it works."</p>
</div>
<div style="margin-top: 30px;"></div>
</div>
"""
# Use gr.Blocks() for a custom layout
# We add the 'title' and 'head' parameters for SEO
with gr.Blocks(
theme=gr.themes.Default(),
css=css,
title="Sora 2 Watermark Remover - NoVideoWatermark", # This sets the <title> tag
head=head_html # This injects all meta tags
) as demo:
# 1. Display the HTML content
gr.HTML(landing_page_content)
# 2. Add the primary, SEO-friendly button
gr.Button(
"Try the Sora 2 Watermark Remover Now", # SEO-friendly Call to Action
link="https://novideowatermark.com/",
variant="primary",
size="lg"
)
# 3. Add a secondary text link
gr.Markdown("""
<p style="text-align: center; margin-top: 10px;">
Visit the full site at:
<a href="https://novideowatermark.com/" target="_blank">
<strong>https://novideowatermark.com/</strong>
</a>
</p>
""")
# Launch the interface
demo.launch()